Commit Graph

31 Commits (4a5ee3ecb793362228a88f8c1609bd830eb88cc1)

Author SHA1 Message Date
sigoden ce1f9929f2
refactor: update openai models list (#396) 6 months ago
sigoden e28b53a405
refactor: update models (#388) 6 months ago
sigoden bbd0c28726
refactor: reorder models (#372)
The capable ones come first.
6 months ago
sigoden 527da63d18
refactor: do not automatically convert temperature value (#368) 6 months ago
sigoden 8e5d4e55b1
refactor: rename model's `max_tokens` to `max_input_tokens` (#339)
BREAKING CHANGE: rename model's `max_tokens` to `max_input_tokens`
7 months ago
sigoden bbb13d8227 chore: improve openai api error handling 7 months ago
sigoden 7633940e03 chore: update order of openai models 7 months ago
sigoden 3bf0c371e4
feat: update openai/qianwen/gemini models (#306) 7 months ago
sigoden a30c3cc4c1
feat: add openai.api_base config (#302) 8 months ago
sigoden fe35cfd941
feat: supports model capabilities (#297)
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
8 months ago
sigoden 3adfeb1ae7 chore: change order of openai models 9 months ago
sigoden 35c75506e2
feat: support vision (#249)
* feat: support vision

* clippy

* implement vision

* resolve data url to local file

* add model openai:gpt-4-vision-preview

* use newline to concate embeded text files

* set max_tokens for gpt-4-vision-preview
10 months ago
sigoden c99dd5a2ff
feat: add openai:gpt-4-1106-preview (#233) 11 months ago
sigoden d40f104f66
feat: allow the use of an unlisted model (#219) 11 months ago
sigoden 9a8b302432
refactor: remove Model.client_index, match client by name (#218) 11 months ago
sigoden 81624f7267
refactor: rename Model.llm_name to name (#216) 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 f6da06dad9
refactor: improve code quanity (#194)
- extends ModelInfo for tokens calculating
- refactor config/session.rs, improve export, render, getter/setter
- modify main.rs, allow --model override session.model
11 months ago
sigoden da3c541b68 refactor: add/use openai_compatible_client macro 11 months ago
sigoden 8d76fc77fb refactor: use reqwest-eventsource as sse client 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 84004fd576
feat: support OPENAI_API_BASE (#186) 11 months ago
sigoden 44ea384ee5 chore: remove unnecessary clippy macros 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 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