summaryrefslogtreecommitdiffstats
path: root/src/main.rs
AgeCommit message (Collapse)AuthorLines
2024-10-09refactor: throw error if using non-exist RAG in CMD mode (#917)sigoden-1/+1
2024-10-08refactor: NO_COLOR, highlight and render_error (#915)sigoden-4/+2
- If NO_COLOR is enabled, AIChat will not output any ANSI color codes. - `config.highlight` will only affect rendering markdown - improve rendering error
2024-10-07fix: unexpected REPL without tty (#911)sigoden-1/+6
2024-10-02feat: change prompt for choosing shell command actions (#898)sigoden-14/+25
2024-09-14feat: add `.save agent-config` repl command (#870)sigoden-1/+1
2024-09-13refactor: role/session/agent should not inherit the global `use_tools` (#868)sigoden-0/+3
2024-09-11refactor: several improvements (#856)sigoden-4/+4
2024-09-10refactor: remove the icons for the execution shell command (#854)sigoden-4/+5
2024-08-31feat: webui support RAG (#815)sigoden-1/+1
2024-08-30feat: replace roles.yaml with roles/<name>.md (#810)sigoden-5/+2
2024-08-08fix: incorrect function call handling with session in non-REPL (#777)LifetimeMistake-5/+4
2024-07-30refactor: do not abandon AICHAT_PLATFORM (#768)sigoden-18/+4
2024-07-30refactor: several improvements (#765)sigoden-6/+4
2024-07-28feat: add `config.stream` and `.set stream` repl command (#759)sigoden-25/+35
2024-07-28feat: abandon cli options --wrap, --no-highlight and --light-theme (#758)sigoden-9/+0
2024-07-27feat: abandon AICHAT_PLATFORM and several improvements (#752)sigoden-17/+31
2024-07-27feat: all config fields have related environment variables (#751)sigoden-3/+6
2024-07-22refactor: ensure parent dir of log path exist (#733)sigoden-2/+3
2024-07-21feat: enhance logger (#731)sigoden-4/+36
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