summaryrefslogtreecommitdiffstats
path: root/src/client/localai.rs
AgeCommit message (Collapse)AuthorLines
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-1/+1
2023-11-03refactor: improve code quanity (#203)sigoden-5/+5
- 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-27/+3
2023-11-01refactor: clients/* and config.rs (#193)sigoden-64/+18
- 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-88/+51
2023-10-30chore: remove unnecessary clippy macrossigoden-1/+0
2023-10-29chore: improve client-related code qualitysigoden-10/+17
2023-10-28refactor: improve environment variables (#163)sigoden-7/+7
Rename `AICHAT_API_KEY` to `OPENAI_API_KEY` Add `LOCALAI_API_KEY`
2023-10-26refactor: improve code quanitysigoden-8/+0
remove tokio::runtime::Runtime from client
2023-10-26feat: support multi bots and custom url (#150)sigoden-0/+181