summaryrefslogtreecommitdiffstats
path: root/src/main.rs
AgeCommit message (Collapse)AuthorLines
2024-07-12refactor: `.starter` rendered in markdown format (#708)sigoden-7/+3
2024-07-04feat: load env vars from file (#685)sigoden-2/+3
2024-06-28feat: `.file`/`--file` support URLs (#665)sigoden-5/+12
2024-06-27refactor: saved messages ignore embedding context (#659)sigoden-3/+3
2024-06-26feat: rag load websites (#655)sigoden-2/+2
2024-06-22refactor: rename bot to agent (#628)sigoden-7/+7
2024-06-17refactor: improve code quatity (#604)sigoden-10/+15
2024-06-13feat: add rag and bot related cli options (#595)sigoden-28/+52
2024-06-11refactor: adjust config methods order (#581)sigoden-2/+2
2024-06-11feat: support bot (#579)sigoden-7/+5
* feat: support bots * refactor with RoleLike * improve exiting session * make bot works with rag * refactor repl assert state * add bot banner * repl complete bots according bots.txt * fix on windows * remove threadpool executing function callings * adjust repl left_prompt * move bot config to global config.yaml * `.bot` throw err if funciton callings is not configured
2024-06-06refactor: global IS_STDOUT_TERMINAL (#571)sigoden-8/+6
2024-06-05feat: support RAG (#560)sigoden-17/+15
* feat: support RAG * support more embeddings models and implement concurrent embedding api * show the progress of addings paths * ignore embedding context when saving message * embedding model max_chunk_size => default_chunk_size * support pdf and pandoc formats (docx, epub, ipynb)
2024-06-01refactor: rename some client structs and methods (#555)sigoden-5/+5
* rename `Completeion*` to `ChatCompletions*` * rename `send_message*` to `chat_completions*` * rename `request_builder` to `chat_completions_builder` * rename `build_body` to `build_chat_completions_body` * rename `extract_completion` to `extract_chat_completions` * format * remove unused config fields
2024-05-21refactor: adjust some placeholder/prompt text (#530)sigoden-3/+3
2024-05-18refactor: shell detect/prompt (#519)sigoden-14/+11
2024-05-18refactor: non-zero exit code when model call fails (#518)sigoden-1/+2
2024-05-18feat: support function calling (#514)sigoden-25/+54
* feat: support function calling * fix on Windows OS * implement multi-steps function calling * fix on Windows OS * add error for client not support function calling * refactor message data structure and make claude client supporting function calling * support reuse previous call results * improve error handling for function calling * use prefix `may_` as indicator for `execute` type fucntions
2024-05-15fix: unexpect enter repl if have pipe-in but no text args (#512)sigoden-1/+1
2024-05-14feat: remove tiktoken (#506)sigoden-7/+1
2024-05-14feat: allow binding model to the role (#505)sigoden-0/+1
2024-05-14refactor: config::Input (#503)sigoden-9/+8
2024-05-11refactor: list roles includeing builtin roles (#499)sigoden-7/+4
2024-05-09refactor: improve revise command executionsigoden-3/+1
2024-05-05refactor: no spinner for `aichat -e` if no terminal stdout (#483)sigoden-5/+11
2024-04-29feat: non-streaming returns completion stats (#456)sigoden-2/+2
2024-04-28feat: add `--prompt` option (#454)sigoden-1/+3
2024-04-24refactor: adjust order of execute actionssigoden-10/+9
2024-04-24feat: serve all LLMs as OpenAI-compatible API (#431)sigoden-23/+38
2024-04-23refactor: more async code (#427)sigoden-22/+25
2024-04-21refactor: tell user session compression (#426)sigoden-18/+2
2024-04-21refactor: shell execution with spinner and select prompt (#425)sigoden-19/+34
2024-04-20refactor: update description for cli options and config fields (#423)sigoden-1/+1
2024-04-18refactor: adjust command revision promptsigoden-1/+4
2024-04-18feat: add config `buffer_editor` (#417)sigoden-1/+1
2024-04-15feat: always use stream unless set `--no-stream` explicitly (#415)sigoden-2/+3
2024-04-14refactor: adjust indicator text and render strategysigoden-2/+3
2024-04-15feat: shell commands support revision (#413)sigoden-18/+20
2024-04-14feat: make built-in roles selectable and rename them (#412)sigoden-10/+10
2024-04-10feat: `-f/--file` take one value and no enter REPL (#399)sigoden-14/+25
2024-03-27refactor: config add in_repl property (#381)sigoden-1/+1
2024-03-27feat: `save_session` config item can be null (#380)sigoden-1/+1
2024-03-27feat: add sepereate `save_session` config item to session (#377)sigoden-3/+3
2024-03-27feat: add `save_session` config item and `--save-session` cli option (#370)Patrick Jackson-3/+5
* fix: sessions should save when exiting * feat: improve save sessions * feat: do not allow saving the temp session name * feat: allow creating a session without interactive use * feat: add `save_session` config and `--save-session` option --------- Co-authored-by: sigoden <sigoden@gmail.com>
2024-03-10feat: allow use of temporary role in a session (#348)sigoden-3/+7
2024-03-06chore: spell checksigoden-2/+2
2024-03-03feat: allow overriding execute/code role (#331)sigoden-15/+13
2024-03-02refactor: auto_copy works when executing command (#328)sigoden-4/+6
2024-03-02feat: add `-c/--code` to generate only code (#327)sigoden-7/+18
2024-02-25refactor: improve saving messages (#322)sigoden-0/+1
2024-02-25chore: improve execute commands promptsigoden-0/+2