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