Commit Graph

20 Commits (ec1f99fbf5c5c4f49a204a368daf04a68f69f088)

Author SHA1 Message Date
sigoden ec1f99fbf5
feat: support Ernie (#210) 11 months ago
sigoden bba5028615
feat: support PaLM (#209) 11 months ago
sigoden 4380b4f20b
refactor: rename azure to azure_openai, improve register_client! (#208) 11 months ago
sigoden b34e40e25f
refactor: rename azure-openai to azure (#204) 11 months ago
sigoden f9c40e52da
refactor: improve code quanity (#203)
- update field name of ModelInfo
- rename ModelInfo to Model
11 months ago
sigoden 7c6841782d
refactor: improve code quanity (#197)
- move model_info.rs/message.rs to clients/
- rename SharedConfig to GlobalConfig
11 months ago
sigoden 444f4ebe9d
refactor: improve code quanity (#196)
- rewrite Repl, remove ReplHandler
- move ReplyStreamHandler to repl/ and rename it to ReplyHandler
- deprecate utils::print_now
- refactor session info
11 months ago
sigoden 5c7bfd92ff
refactor: set tokens count factors (#195) 11 months ago
sigoden da3c541b68 refactor: add/use openai_compatible_client macro 11 months ago
sigoden 7f2210dbca
refactor: clients/* and config.rs (#193)
- 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
11 months ago
sigoden a137483b03
feat: improve client (#189) 11 months ago
sigoden 36380475d5
feat: support azure-openai (#166) 11 months ago
sigoden 5c0383f908
fix: dry run on role or session (#181) 11 months ago
sigoden 44ea384ee5 chore: remove unnecessary clippy macros 11 months ago
sigoden 1ced15a209
feat: autodetect light theme on unix-like os (#168) 11 months ago
sigoden 985f8c0946 chore: improve client-related code quality 11 months ago
sigoden 2ab2e23bb0
refactor: improve environment variables (#163)
Rename `AICHAT_API_KEY` to `OPENAI_API_KEY`
Add `LOCALAI_API_KEY`
11 months ago
sigoden 47818159a7
refactor: streaming input text in dry-run mode (#154) 11 months ago
sigoden 66fd547c0f refactor: improve code quanity
remove tokio::runtime::Runtime from client
11 months ago
sigoden 7d8564cafb
feat: support multi bots and custom url (#150) 11 months ago