summaryrefslogtreecommitdiffstats
path: root/src/client/common.rs
AgeCommit message (Collapse)AuthorLines
18 hoursFixed subquery tool double addingLeonard Kugis-1/+2
2 daysfeat: add built-in subquery tool with hierarchical query idsaichat-agent-2/+28
* Add config options subquery and subquery_max_depth. * Register an internal subquery function that spawns a fresh LLM query with the current model configuration but without the full context. The model selects context numerically (message_indexes) or by text excerpt (excerpts). * Subqueries can use tools, including further nested subqueries up to subquery_max_depth. * Queries and subqueries get hierarchical ids ([0], [0/1], [0/1/2]) that prefix tool-call prints and spinner messages.
2025-03-26refactor: replace `lazy_static` with `std::sync::LazyLock` (#1246)mtul0729-7/+12
2025-03-11feat: `--code` (tty) strips `<think>` tag (#1227)sigoden-1/+1
2025-02-17refactor: several improvements (#1180)sigoden-2/+2
2025-02-14refactor: several improvements (#1177)sigoden-1/+1
2025-02-13feat: add model field `patch` (#1169)sigoden-3/+9
2025-02-10refactor: several improvements (#1166)sigoden-2/+2
2025-02-10feat: drop predefined models for ollama (#1165)sigoden-12/+17
2025-02-10feat: supports fetching models during configuration initialization (#1161)sigoden-31/+92
2025-02-08feat: supports selecting LLM during configuration initialization (#1158)sigoden-13/+48
2025-02-03refactor: improve call_chat_completions function (#1143)sigoden-21/+7
2025-02-02refactor: several improvements (#1138)mtul0729-2/+3
2025-01-27feat: ernie migrates to v2 api (#1130)sigoden-13/+0
2025-01-22feat: add `--sync-models` cli option (#1114)sigoden-5/+8
2025-01-21refactor: optimize configuration initialization (#1110)sigoden-96/+73
2025-01-17refactor: send all text instead of word-by-word in dry_run mode (#1088)sigoden-14/+1
2024-12-04refactor: improve retrieve model (#1036)sigoden-31/+7
- check the model type while retrieve model - select chat/reranker model even if it is missed in client models - find predefined-models for openai-compatible client with startsWith - remove client::ApiType
2024-11-06feat: add config `user_agent` (#971)sigoden-0/+3
2024-10-29fix: unexpected Ctrl-C/Ctrl-D handling in non-stream REPL Chat (#957)sigoden-2/+12
2024-10-29refactor: improve code quality (#956)sigoden-10/+14
2024-10-19refactor: improve handling of no_stream/no_system_message (#936)sigoden-1/+1
2024-09-24refactor: embeddings/rerank fn accept ref data (#878)sigoden-6/+6
2024-09-13refactor: catch api error (#861)sigoden-0/+5
2024-09-06fix: render stream failed due to read cursor position timeout (#835)sigoden-7/+7
2024-09-02feat: migrate `cloudflare` client to `openai-compatible` (#821)sigoden-7/+10
2024-07-30refactor: several improvements (#765)sigoden-2/+1
2024-07-28feat: add `config.stream` and `.set stream` repl command (#759)sigoden-7/+28
2024-07-28feat: abandon rag_dedicated client and improve (#757)sigoden-31/+46
2024-07-27feat: support patching request url, headers and body (#756)sigoden-35/+129
2024-07-27feat: change model patch structure (#754)sigoden-16/+23
2024-07-27feat: set model patches with `AICHAT_{client}_PATCHES` (#753)sigoden-10/+10
2024-07-27refactor: split clients/macros.rs from clients/common.rs (#750)sigoden-293/+0
2024-07-26refactor: several optimizations (#749)sigoden-1/+0
2024-07-22refactor: invalid model error message (#735)sigoden-1/+1
2024-07-17refactor: config creation prompt aware of env var (#722)sigoden-5/+13
2024-07-11refactor: improve estimate_token_length (#703)sigoden-15/+17
2024-06-27feat: implement native rag url loader (#660)sigoden-26/+4
2024-06-25refactor: rename model type `rerank` to `reranker` (#646)sigoden-2/+2
2024-06-25feat: support rag-dedicated clients (jina and voyageai) (#645)sigoden-4/+6
2024-06-22refactor: improve clients (#632)sigoden-2/+2
2024-06-22feat: ernie support embeddings and rereank (#630)sigoden-3/+3
2024-06-22refactor: some error messages (#627)sigoden-4/+4
2024-06-21refactor: rename model.max_concurrent_chunks to model.max_batch_size (#626)sigoden-1/+1
2024-06-21refactor: rename model.mode to model.type (#625)sigoden-3/+3
2024-06-21feat: support rerank (#620)sigoden-7/+94
2024-06-17refactor: improve code quatity (#604)sigoden-3/+3
2024-06-14chore: clippy and format (#600)sigoden-12/+0
2024-06-05feat: support RAG (#560)sigoden-45/+95
* 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-25/+29
* 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