summaryrefslogtreecommitdiffstats
path: root/src/repl/mod.rs
AgeCommit message (Collapse)AuthorLines
2024-07-12refactor: `.starter` rendered in markdown format (#708)sigoden-9/+1
2024-07-09feat: support agent variables (#692)sigoden-1/+14
2024-07-01feat: support `.rebuild rag` repl command(#672)sigoden-4/+22
2024-06-29refactor: the name of temp file (#670)sigoden-3/+2
2024-06-28feat: `.file`/`--file` support URLs (#665)sigoden-1/+1
2024-06-27refactor: saved messages ignore embedding context (#659)sigoden-1/+1
2024-06-25refactor: compress session (#649)sigoden-21/+16
1. no require compress_threshold >= 1000 2. no compressing in middle of function calling
2024-06-23refactor: cli options and shell completions (#640)sigoden-7/+7
2024-06-23refactor: minor improvement (#638)sigoden-1/+11
2024-06-22refactor: minior improvement (#633)sigoden-3/+3
2024-06-22refactor: rename bot to agent (#628)sigoden-13/+13
2024-06-17refactor: minor improvement (#611)sigoden-1/+1
2024-06-17feat: add `.regenerate` repl command (#610)sigoden-2/+15
2024-06-17feat: add `.continue` repl command (#608)sigoden-10/+19
2024-06-17feat: add `.edit session` repl command (#606)sigoden-3/+21
2024-06-17refactor: improve code quatity (#604)sigoden-10/+11
2024-06-13feat: add rag and bot related cli options (#595)sigoden-6/+6
2024-06-13feat: add `.starter` repl command (#594)sigoden-9/+41
2024-06-11feat: support bot (#579)sigoden-24/+50
* 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: config refinement (#570)sigoden-1/+1
2024-06-05feat: support RAG (#560)sigoden-19/+42
* 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-02refactor: switch to bitflags State (#557)sigoden-23/+46
2024-06-01refactor: rename some client structs and methods (#555)sigoden-1/+1
* 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-18feat: support function calling (#514)sigoden-42/+55
* 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-14feat: remove tiktoken (#506)sigoden-1/+0
2024-05-14feat: allow binding model to the role (#505)sigoden-0/+3
2024-05-14refactor: config::Input (#503)sigoden-11/+12
2024-05-11refactor: list roles includeing builtin roles (#499)sigoden-2/+1
2024-05-01refactor: `.file` splits files/text args in windows os (#473)sigoden-5/+40
2024-05-01refactor: `.file` repl command files/text split (#472)sigoden-4/+5
2024-04-29chore: update help-texts/warnings in replsigoden-6/+6
2024-04-29feat: non-streaming returns completion stats (#456)sigoden-1/+1
2024-04-28feat: add `--prompt` option (#454)sigoden-1/+1
2024-04-24feat: serve all LLMs as OpenAI-compatible API (#431)sigoden-2/+0
2024-04-23refactor: more async code (#427)sigoden-17/+16
2024-04-21refactor: tell user session compression (#426)sigoden-3/+20
2024-04-20refactor: update description for cli options and config fields (#423)sigoden-30/+18
2024-04-20feat: add `.prompt` repl command (#420)sigoden-2/+13
2024-04-20feat: ctrlc won't exit repl and remove `ctrlc_exit` config (#419)sigoden-18/+3
2024-04-18feat: add config `buffer_editor` (#417)sigoden-2/+2
2024-04-10feat: `-f/--file` take one value and no enter REPL (#399)sigoden-1/+1
2024-04-09feat: use ctrl+enter to enter newline in REPL (#394)sigoden-2/+7
2024-04-08refactor: change ctrlc message textsigoden-4/+8
2024-04-09feat: add `ctrlc_exit` option to control REPL exit by ctrl+c (#391)sigoden-3/+4
2024-03-27feat: add repl command `.save session` (#382)sigoden-4/+26
2024-03-27refactor: config add in_repl property (#381)sigoden-1/+3
2024-03-27feat: add `save_session` config item and `--save-session` cli option (#370)Patrick Jackson-1/+1
* 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-17refactor: cleanup the deprecated repl commands (#355)sigoden-12/+0
2024-03-10feat: allow use of temporary role in a session (#348)sigoden-26/+15
2024-03-09fix: erratic behaviour when using temp role in a session (#347)sigoden-9/+14