summaryrefslogtreecommitdiffstats
path: root/src/client/ernie.rs
AgeCommit message (Collapse)AuthorLines
2024-05-23fix: json stream parser and refine client modules (#538)sigoden-3/+3
2024-05-22feat: allow patching req body with client config (#534)sigoden-2/+6
2024-05-18feat: support function calling (#514)sigoden-9/+14
* 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-05-06refactor: unified access token management (#486)sigoden-7/+6
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: sse handling (#465)sigoden-3/+3
2024-04-29refactor: abstract event stream handling (#458)sigoden-46/+10
2024-04-29refactor: rename some structs (#457)sigoden-9/+9
2024-04-29feat: non-streaming returns completion stats (#456)sigoden-11/+21
2024-04-28refactor: extract prelude models to models.yaml (#451)sigoden-22/+2
2024-04-26refactor: simplify impl client trait (#445)sigoden-22/+22
2024-04-25refactor: extract common catch_error (#437)sigoden-41/+19
2024-04-25refactor: rewrite list models of all clients (#436)sigoden-75/+31
2024-04-24feat: support customizing `top_p` parameter (#434)sigoden-0/+4
2024-04-24refactor: handling of response error (#433)sigoden-16/+16
2024-04-23feat: builtin models can be overwrited by models config (#429)sigoden-10/+16
2024-04-23feat: customize model's max_output_tokens (#428)sigoden-14/+46
2024-04-23refactor: more async code (#427)sigoden-2/+5
2024-04-06refactor: update models (#388)sigoden-1/+2
2024-03-22refactor: do not automatically convert temperature value (#368)sigoden-13/+17
2024-03-17feat: update ernie models (#357)sigoden-10/+13
2024-03-06feat: add new ernie models (#340)sigoden-8/+22
2024-02-16refactor: update vertexai/gemini/ernie clients (#309)sigoden-3/+8
2024-01-13feat: supports model capabilities (#297)sigoden-21/+11
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-19refactor: adjust order of ernie modelssigoden-2/+2
2023-12-19feat: support gemini (#273)sigoden-9/+2
2023-11-27feat: add ernie:ernie-bot-8k qianwen:qwen-max (#252)sigoden-2/+3
2023-11-27feat: support vision (#249)sigoden-3/+5
* 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-14refactor: ernie client system message (#244)sigoden-6/+5
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-3/+3
2023-11-07refactor: rename Model.llm_name to name (#216)sigoden-2/+2
2023-11-04feat: support Ernie (#210)sigoden-0/+231