Commit Graph

40 Commits (a17f349daa0609402c51205929b9f2b32f6fb1bb)

Author SHA1 Message Date
sigoden a17f349daa
feat: support customizing `top_p` parameter (#434) 2 months ago
sigoden 040c48b9b3
refactor: handling of response error (#433) 2 months ago
sigoden 9c6c9f10a2
feat: builtin models can be overwrited by models config (#429) 2 months ago
sigoden d1aafa1115
feat: customize model's max_output_tokens (#428) 2 months ago
sigoden 1cc89eff51
refactor: more async code (#427) 2 months ago
sigoden a0b4f344ee refactor: improve error message for some clients 2 months ago
sigoden 9f19539c2c
refactor: improve error mesasge for invalid eventsource content-type (#405) 2 months ago
sigoden 3b5843fe2e
refactor: all clients use openai token counter (#402) 2 months ago
sigoden 01ebc87348
refactor: update openai models list (#400) 2 months ago
sigoden ce1f9929f2
refactor: update openai models list (#396) 2 months ago
sigoden e28b53a405
refactor: update models (#388) 2 months ago
sigoden bbd0c28726
refactor: reorder models (#372)
The capable ones come first.
3 months ago
sigoden 527da63d18
refactor: do not automatically convert temperature value (#368) 3 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`
3 months ago
sigoden bbb13d8227 chore: improve openai api error handling 4 months ago
sigoden 7633940e03 chore: update order of openai models 4 months ago
sigoden 3bf0c371e4
feat: update openai/qianwen/gemini models (#306) 4 months ago
sigoden a30c3cc4c1
feat: add openai.api_base config (#302) 5 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
5 months ago
sigoden 3adfeb1ae7 chore: change order of openai models 6 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
7 months ago
sigoden c99dd5a2ff
feat: add openai:gpt-4-1106-preview (#233) 7 months ago
sigoden d40f104f66
feat: allow the use of an unlisted model (#219) 7 months ago
sigoden 9a8b302432
refactor: remove Model.client_index, match client by name (#218) 7 months ago
sigoden 81624f7267
refactor: rename Model.llm_name to name (#216) 7 months ago
sigoden f9c40e52da
refactor: improve code quanity (#203)
- update field name of ModelInfo
- rename ModelInfo to Model
8 months ago
sigoden 7c6841782d
refactor: improve code quanity (#197)
- move model_info.rs/message.rs to clients/
- rename SharedConfig to GlobalConfig
8 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
8 months ago
sigoden 5c7bfd92ff
refactor: set tokens count factors (#195) 8 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
8 months ago
sigoden da3c541b68 refactor: add/use openai_compatible_client macro 8 months ago
sigoden 8d76fc77fb refactor: use reqwest-eventsource as sse client 8 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
8 months ago
sigoden a137483b03
feat: improve client (#189) 8 months ago
sigoden 84004fd576
feat: support OPENAI_API_BASE (#186) 8 months ago
sigoden 44ea384ee5 chore: remove unnecessary clippy macros 8 months ago
sigoden 985f8c0946 chore: improve client-related code quality 8 months ago
sigoden 2ab2e23bb0
refactor: improve environment variables (#163)
Rename `AICHAT_API_KEY` to `OPENAI_API_KEY`
Add `LOCALAI_API_KEY`
8 months ago
sigoden 66fd547c0f refactor: improve code quanity
remove tokio::runtime::Runtime from client
8 months ago
sigoden 7d8564cafb
feat: support multi bots and custom url (#150) 8 months ago