Commit Graph

28 Commits (eac01fb129ce5a06e00cc2cc24e31b40e81eb66b)

Author SHA1 Message Date
sigoden eac01fb129 refactor: rename macro to openai_compatible_client 1 month ago
sigoden 740ca2413a
refactor: simplify impl client trait (#445) 1 month ago
sigoden e5432ff779
refactor: simplify openai compatible module (#440) 1 month ago
sigoden 1a56e38fe2
refactor: fix typo and some error message (#438) 1 month ago
sigoden a193710a7f
refactor: extract common catch_error (#437) 1 month ago
sigoden 4db9b30980
refactor: rewrite list models of all clients (#436) 1 month ago
sigoden a17f349daa
feat: support customizing `top_p` parameter (#434) 1 month ago
sigoden 4f8d895154
refactor: handling of system message (#432) 1 month ago
sigoden 9c6c9f10a2
feat: builtin models can be overwrited by models config (#429) 1 month ago
sigoden 1cc89eff51
refactor: more async code (#427) 1 month ago
sigoden a0bd6e1d5d
refactor: extract json stream handling (#398) 2 months ago
sigoden 0ebc7955da
refactor: improve creating config for openai-compatible client (#374) 2 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 6fb13359f4
feat: abandon PaLM2 (#274) 6 months ago
sigoden 6286251d32
feat: support gemini (#273) 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
6 months ago
sigoden 01cf8acb81
refactor: improve code quanity (#238) 7 months ago
sigoden 9a8b302432
refactor: remove Model.client_index, match client by name (#218) 7 months ago
sigoden 87aec71e08
refactor: use &GlobalConfig to avoid clone (#217) 7 months ago
sigoden bba5028615
feat: support PaLM (#209) 7 months ago
sigoden 4380b4f20b
refactor: rename azure to azure_openai, improve register_client! (#208) 7 months ago
sigoden f9c40e52da
refactor: improve code quanity (#203)
- update field name of ModelInfo
- rename ModelInfo to Model
7 months ago
sigoden 652b51509d
refactor: improve repl completer (#199) 7 months ago
sigoden 7c6841782d
refactor: improve code quanity (#197)
- move model_info.rs/message.rs to clients/
- rename SharedConfig to GlobalConfig
7 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
7 months ago
sigoden 0238c8734e chore: spellcheck typos 7 months ago
sigoden da3c541b68 refactor: add/use openai_compatible_client macro 7 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
7 months ago