summaryrefslogtreecommitdiffstats
path: root/src/client/cloudflare.rs
AgeCommit message (Collapse)AuthorLines
2024-06-21feat: cloudflare support embeddings (#623)sigoden-3/+50
2024-06-05feat: support RAG (#560)sigoden-5/+2
* 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-12/+19
* 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-5/+9
2024-05-23fix: json stream parser and refine client modules (#538)sigoden-2/+2
2024-05-22feat: allow patching req body with client config (#534)sigoden-3/+5
2024-05-18feat: support function calling (#514)sigoden-7/+10
* 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-08refactor: model pass_max_tokens (#493)sigoden-1/+1
2024-04-30feat: openai-compatible platforms share the same client (#469)sigoden-2/+2
2024-04-30refactor: improve code qualitysigoden-3/+1
2024-04-29refactor: check res status codesigoden-1/+1
2024-04-29refactor: sse handling (#465)sigoden-4/+4
2024-04-29refactor: prompts for generating config file (#463)sigoden-2/+2
2024-04-29feat: support cloudflare client (#459)sigoden-0/+115