summaryrefslogtreecommitdiffstats
path: root/src/client/openai.rs
AgeCommit message (Collapse)AuthorLines
2024-06-22refactor: improve clients (#632)sigoden-10/+10
2024-06-21feat: support rerank (#620)sigoden-1/+1
2024-06-19refactor: rag add rag_minimum_score config (#617)sigoden-2/+1
2024-06-11refactor: improve openai client (#586)sigoden-1/+0
2024-06-05chore: formatsigoden-5/+3
2024-06-05feat: support RAG (#560)sigoden-9/+58
* 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-15/+15
* 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-6/+10
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/+6
2024-05-18feat: support function calling (#514)sigoden-10/+127
* 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: abstract event stream handling (#458)sigoden-46/+13
2024-04-29refactor: rename some structs (#457)sigoden-7/+7
2024-04-29feat: non-streaming returns completion stats (#456)sigoden-7/+16
2024-04-28refactor: extract prelude models to models.yaml (#451)sigoden-14/+0
2024-04-26refactor: simplify impl client trait (#445)sigoden-3/+6
2024-04-25refactor: fix typo and some error message (#438)sigoden-1/+4
2024-04-25refactor: extract common catch_error (#437)sigoden-13/+3
2024-04-25refactor: rewrite list models of all clients (#436)sigoden-22/+20
2024-04-24feat: support customizing `top_p` parameter (#434)sigoden-4/+8
2024-04-24refactor: handling of response error (#433)sigoden-12/+20
2024-04-23feat: builtin models can be overwrited by models config (#429)sigoden-13/+4
2024-04-23feat: customize model's max_output_tokens (#428)sigoden-6/+7
2024-04-23refactor: more async code (#427)sigoden-2/+2
2024-04-19refactor: improve error message for some clientssigoden-4/+10
2024-04-11refactor: improve error mesasge for invalid eventsource content-type (#405)sigoden-0/+4
2024-04-11refactor: all clients use openai token counter (#402)sigoden-4/+1
2024-04-10refactor: update openai models list (#400)sigoden-1/+5
2024-04-10refactor: update openai models list (#396)sigoden-7/+5
2024-04-06refactor: update models (#388)sigoden-4/+4
2024-03-25refactor: reorder models (#372)sigoden-3/+3
The capable ones come first.
2024-03-22refactor: do not automatically convert temperature value (#368)sigoden-1/+1
2024-03-06refactor: rename model's `max_tokens` to `max_input_tokens` (#339)sigoden-5/+5
BREAKING CHANGE: rename model's `max_tokens` to `max_input_tokens`
2024-03-01chore: improve openai api error handlingsigoden-2/+5
2024-03-01chore: update order of openai modelssigoden-3/+3
2024-02-13feat: update openai/qianwen/gemini models (#306)sigoden-2/+2
2024-01-30feat: add openai.api_base config (#302)sigoden-6/+3
2024-01-13feat: supports model capabilities (#297)sigoden-17/+12
1. automatically switch to the model that has the necessary capabilities. 2. throw an error if the client does not have a model with the necessary capabilities
2023-12-16chore: change order of openai modelssigoden-2/+2
2023-11-27feat: support vision (#249)sigoden-2/+9
* feat: support vision * clippy * implement vision * resolve data url to local file * add model openai:gpt-4-vision-preview * use newline to concate embeded text files * set max_tokens for gpt-4-vision-preview
2023-11-08feat: add openai:gpt-4-1106-preview (#233)sigoden-2/+4
2023-11-07feat: allow the use of an unlisted model (#219)sigoden-0/+2
2023-11-07refactor: remove Model.client_index, match client by name (#218)sigoden-2/+2
2023-11-07refactor: rename Model.llm_name to name (#216)sigoden-1/+1
2023-11-03refactor: improve code quanity (#203)sigoden-5/+5
- update field name of ModelInfo - rename ModelInfo to Model