sigoden
3adfeb1ae7
chore: change order of openai models
10 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