summaryrefslogtreecommitdiffstats
path: root/src/client/mod.rs
AgeCommit message (Collapse)AuthorLines
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