summaryrefslogtreecommitdiffstats
path: root/src/main.rs
AgeCommit message (Collapse)AuthorLines
2024-12-01feat: append shell execute command to history file (#1026)sigoden-2/+3
2024-12-01feat: agent supports dynamic instructions (#1023)sigoden-2/+1
* feat: agent supports dynamic instructions * change tool calls' null output to 'TODO' * REPL don't print banner if use agent/rag
2024-11-27feat: handle Ctrl+C during every spinner in REPL (#1014)sigoden-3/+11
2024-11-19feat: support autonaming session (#1001)sigoden-1/+1
2024-11-14refactor: improve tool calls (#995)sigoden-1/+1
- rename MessageContent:ToolResults to MessageContent:ToolCalls - rename ToolResults to MessageContentToolCalls - persist tool_calls to messages.md
2024-11-13refactor: don't init agent RAG/variables when using `--info` (#989)sigoden-0/+4
2024-11-13refactor: no side effect `--save-session` (#987)sigoden-1/+1
2024-10-29fix: unexpected Ctrl-C/Ctrl-D handling in non-stream REPL Chat (#957)sigoden-9/+24
2024-10-29refactor: improve code quality (#956)sigoden-37/+8
2024-10-22refactor: several improvements (#943)sigoden-1/+1
- rename agents_config_dir to agents_data_dir - do not save empty role name while saving the session - rename delete keys (roles/sessions/rags/agents => role/session/rag/agent-data) - improve some printing messages
2024-10-19feat: support openai o1 models (#935)sigoden-2/+2
2024-10-17fix: unexpected error while piping to shell execution on macOS (#930)sigoden-0/+3
2024-10-16feat: add shell action `copy` (#926)sigoden-7/+13
2024-10-14feat: add CLI option `--empty-session` (#922)sigoden-0/+3
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