summaryrefslogtreecommitdiffstats
path: root/src/client/azure_openai.rs
AgeCommit message (Collapse)AuthorLines
2024-07-28feat: abandon rag_dedicated client and improve (#757)sigoden-33/+40
2024-07-27feat: support patching request url, headers and body (#756)sigoden-23/+13
2024-07-27feat: change model patch structure (#754)sigoden-1/+1
2024-06-26refactor: improve azure-openai (#652)sigoden-3/+9
2024-06-05chore: formatsigoden-1/+1
2024-06-05feat: support RAG (#560)sigoden-7/+24
* 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-3/+6
2024-05-18feat: support function calling (#514)sigoden-5/+4
* 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-30refactor: update azure-openai api version (#470)sigoden-1/+1
2024-04-30feat: openai-compatible platforms share the same client (#469)sigoden-2/+4
2024-04-30refactor: improve code qualitysigoden-3/+1
2024-04-29refactor: prompts for generating config file (#463)sigoden-1/+1
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-12/+3
2024-04-11refactor: all clients use openai token counter (#402)sigoden-3/+3
2024-03-06refactor: rename model's `max_tokens` to `max_input_tokens` (#339)sigoden-3/+3
BREAKING CHANGE: rename model's `max_tokens` to `max_input_tokens`
2024-01-13feat: supports model capabilities (#297)sigoden-8/+3
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-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-2/+2
2023-11-04refactor: rename azure to azure_openai, improve register_client! (#208)sigoden-0/+73
2023-11-03refactor: rename azure-openai to azure (#204)sigoden-84/+0
2023-11-03refactor: improve code quanity (#203)sigoden-6/+6
- update field name of ModelInfo - rename ModelInfo to Model
2023-11-02refactor: improve code quanity (#197)sigoden-2/+2
- move model_info.rs/message.rs to clients/ - rename SharedConfig to GlobalConfig
2023-11-02refactor: improve code quanity (#196)sigoden-1/+3
- rewrite Repl, remove ReplHandler - move ReplyStreamHandler to repl/ and rename it to ReplyHandler - deprecate utils::print_now - refactor session info
2023-11-02refactor: set tokens count factors (#195)sigoden-2/+6
2023-11-01refactor: improve code quanity (#194)sigoden-2/+2
- extends ModelInfo for tokens calculating - refactor config/session.rs, improve export, render, getter/setter - modify main.rs, allow --model override session.model
2023-11-01refactor: add/use openai_compatible_client macrosigoden-26/+3
2023-11-01refactor: clients/* and config.rs (#193)sigoden-61/+21
- add register_clients macro to make it easier to add a new client - no create_client_config, just add const PROMPTS - move ModelInfo from clients/ to config/ - model's max_tokens are optional - improve code quanity on config/mod.rs - add/use macro config_get_fn
2023-10-31feat: improve client (#189)sigoden-94/+51
2023-10-31feat: support azure-openai (#166)sigoden-0/+184