summaryrefslogtreecommitdiffstats
path: root/src/client/openai_compatible.rs
AgeCommit message (Collapse)AuthorLines
2024-09-24refactor: embeddings/rerank fn accept ref data (#878)sigoden-5/+8
2024-09-01refactor: openai_compatible client config (#820)sigoden-26/+2
2024-09-01feat: migrate `ollama`/`qianwen` clients to `openai-compatible` (#816)sigoden-1/+13
2024-08-17feat: enable custom `api_base` for most clients (#793)sigoden-8/+12
2024-07-28feat: abandon rag_dedicated client and improve (#757)sigoden-62/+114
2024-07-27feat: support patching request url, headers and body (#756)sigoden-32/+19
2024-07-27feat: change model patch structure (#754)sigoden-1/+1
2024-06-25feat: support rag-dedicated clients (jina and voyageai) (#645)sigoden-3/+3
2024-06-21feat: support rerank (#620)sigoden-3/+26
2024-06-05chore: formatsigoden-1/+1
2024-06-05feat: support RAG (#560)sigoden-25/+48
* 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-6/+6
* 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-30refactor: rename `SendData` to `CompletionData` (#553)sigoden-3/+7
2024-05-22feat: allow patching req body with client config (#534)sigoden-5/+4
2024-05-18feat: support function calling (#514)sigoden-3/+3
* 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-04-30feat: openai-compatible platforms share the same client (#469)sigoden-3/+22
2024-04-30refactor: improve code qualitysigoden-3/+3
2024-04-29refactor: prompts for generating config file (#463)sigoden-2/+4
2024-04-28refactor: extract prelude models to models.yaml (#451)sigoden-1/+0
2024-04-26refactor: simplify impl client trait (#445)sigoden-3/+6
2024-04-23feat: builtin models can be overwrited by models config (#429)sigoden-6/+2
2024-04-23feat: customize model's max_output_tokens (#428)sigoden-13/+3
2024-04-11refactor: all clients use openai token counter (#402)sigoden-2/+1
2024-03-25refactor: improve creating config for openai-compatible client (#374)sigoden-1/+2
2024-03-25feat: rename client localai to openai-compatible (#373)sigoden-0/+77
BREAKING CHANGE: rename client localai to openai-compatible