summaryrefslogtreecommitdiffstats
path: root/src/client/mod.rs
AgeCommit message (Collapse)AuthorLines
2024-05-18feat: support function calling (#514)sigoden-0/+1
* 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-07feat: support zhipuai client (#491)sigoden-1/+2
2024-05-07feat: support deepseek client (#490)sigoden-1/+2
2024-05-06refactor: unified access token management (#486)sigoden-0/+1
2024-05-06feat: extract vertexai-claude client (#485)sigoden-0/+6
2024-04-30feat: openai-compatible platforms share the same client (#469)sigoden-22/+12
2024-04-30feat: support more openai compatiable clients (#467)sigoden-0/+20
2024-04-30feat: support replicate client (#466)sigoden-0/+1
2024-04-29feat: support cloudflare client (#459)sigoden-6/+7
2024-04-29refactor: rename some structs (#457)sigoden-2/+2
2024-04-28feat: support bedrock client (#450)sigoden-0/+3
2024-04-28refactor: extract prelude models to models.yaml (#451)sigoden-13/+13
2024-04-26feat: support perplexity (#444)sigoden-0/+1
2024-04-25feat: support moonshot again (#442)sigoden-0/+1
2024-04-25feat: support groq (#441)sigoden-0/+1
2024-04-23refactor: more async code (#427)sigoden-0/+2
2024-04-19feat: remove moonshot client (#418)sigoden-1/+0
2024-04-10refactor: adjust client ordersigoden-11/+11
2024-04-10feat: support cohere (#397)sigoden-0/+1
2024-03-25feat: rename client localai to openai-compatible (#373)sigoden-1/+6
BREAKING CHANGE: rename client localai to openai-compatible
2024-03-25feat: support moonshot (#369)sigoden-1/+2
2024-02-28feat: support mistral (#324)sigoden-0/+1
2024-02-27feat: support claude (#278)sigoden-0/+1
2024-02-15feat: support vertexai (#308)sigoden-0/+1
2023-12-20feat: support ollama (#276)sigoden-1/+2
2023-12-19feat: abandon PaLM2 (#274)sigoden-1/+0
2023-12-19feat: support gemini (#273)sigoden-0/+1
2023-11-04feat: support Qianwen (#211)sigoden-0/+1
2023-11-04feat: support Ernie (#210)sigoden-0/+1
2023-11-04feat: support PaLM (#209)sigoden-0/+1
2023-11-04refactor: rename azure to azure_openai, improve register_client! (#208)sigoden-3/+8
2023-11-03refactor: rename azure-openai to azure (#204)sigoden-7/+1
2023-11-03refactor: improve code quanity (#203)sigoden-2/+2
- update field name of ModelInfo - rename ModelInfo to Model
2023-11-02refactor: improve code quanity (#197)sigoden-0/+4
- move model_info.rs/message.rs to clients/ - rename SharedConfig to GlobalConfig
2023-11-02refactor: improve code quanity (#196)sigoden-6/+0
- 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-1/+5
2023-11-01refactor: add/use openai_compatible_client macrosigoden-19/+5
2023-11-01refactor: clients/* and config.rs (#193)sigoden-263/+23
- 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-27/+99
2023-10-31feat: support azure-openai (#166)sigoden-1/+13
2023-10-30fix: dry run on role or session (#181)sigoden-5/+7
2023-10-30chore: remove unnecessary clippy macrossigoden-1/+0
2023-10-29feat: autodetect light theme on unix-like os (#168)sigoden-4/+3
2023-10-29chore: improve client-related code qualitysigoden-49/+14
2023-10-28refactor: improve environment variables (#163)sigoden-1/+18
Rename `AICHAT_API_KEY` to `OPENAI_API_KEY` Add `LOCALAI_API_KEY`
2023-10-27refactor: streaming input text in dry-run mode (#154)sigoden-1/+6
2023-10-26refactor: improve code quanitysigoden-7/+10
remove tokio::runtime::Runtime from client
2023-10-26feat: support multi bots and custom url (#150)sigoden-0/+198