sigoden
0a4c0413ef
feat: serve all LLMs as OpenAI-compatible API ( #431 )
5 months ago
sigoden
1cc89eff51
refactor: more async code ( #427 )
5 months ago
sigoden
c5506fe393
refactor: tell user session compression ( #426 )
5 months ago
sigoden
8ab57ed74e
refactor: update description for cli options and config fields ( #423 )
5 months ago
sigoden
5d763fc10c
feat: add `.prompt` repl command ( #420 )
5 months ago
sigoden
8b806db857
feat: ctrlc won't exit repl and remove `ctrlc_exit` config ( #419 )
5 months ago
sigoden
b9bde15c1f
feat: add config `buffer_editor` ( #417 )
5 months ago
sigoden
4a5ee3ecb7
feat: `-f/--file` take one value and no enter REPL ( #399 )
5 months ago
sigoden
26289616d3
feat: use ctrl+enter to enter newline in REPL ( #394 )
6 months ago
sigoden
2280010959
refactor: change ctrlc message text
6 months ago
sigoden
2738988fc4
feat: add `ctrlc_exit` option to control REPL exit by ctrl+c ( #391 )
6 months ago
sigoden
68a1d98a3d
feat: add repl command `.save session` ( #382 )
6 months ago
sigoden
4cfd6c8e9f
refactor: config add in_repl property ( #381 )
6 months ago
Patrick Jackson
582f56e915
feat: add `save_session` config item and `--save-session` cli option ( #370 )
...
* fix: sessions should save when exiting
* feat: improve save sessions
* feat: do not allow saving the temp session name
* feat: allow creating a session without interactive use
* feat: add `save_session` config and `--save-session` option
---------
Co-authored-by: sigoden <sigoden@gmail.com>
6 months ago
sigoden
992d570041
refactor: cleanup the deprecated repl commands ( #355 )
6 months ago
sigoden
aed243c3aa
feat: allow use of temporary role in a session ( #348 )
7 months ago
sigoden
8f14498969
fix: erratic behaviour when using temp role in a session ( #347 )
7 months ago
sigoden
d5b10ea0c1
chore: fix typos
7 months ago
sigoden
3f693ea060
feat: compress session automaticlly ( #333 )
...
* feat: compress session automaticlly
* non-block
* update field description
* set compress_threshold
* update session::clear_messages
* able to override session compress_threshold
* enable compress_threshold by default
* make session compress_threshold optional
7 months ago
sigoden
e443905dc1
feat: add `.clear messages` to clear session messages ( #332 )
7 months ago
sigoden
7e32787dba
chore: improve code quanity on ReplCommand/State
7 months ago
sigoden
b2f86f2899
refactor: auto_copy works when executing command ( #328 )
7 months ago
sigoden
16b7ac071f
chore: update deps and readme
7 months ago
sigoden
373b34ef5c
feat: edit current prompt on $VISUAL/$EDITOR ( #314 )
7 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
Nicola Coretti
4e99df4c1b
fix: deprecation warning of .read command ( #296 )
8 months ago
sigoden
1c9ca1b002
feat: custom REPL prompt ( #283 )
9 months ago
sigoden
e7272398dd
feat: change REPL indicators ( #263 )
10 months ago
sigoden
ee5fbe629c
feat: allow shift-tab to select prev in completion menu ( #254 )
10 months ago
sigoden
c58912ba64
refactor: sort of some complete type ( #253 )
10 months ago
sigoden
2508d56598
feat: state-aware completer ( #251 )
10 months ago
sigoden
25e545474f
chore: upgrade deps ( #250 )
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
542dcfe6f6
feat: extend `.read` to support files and messages ( #242 )
10 months ago
sigoden
eb30d90391
refactor: improve render ( #235 )
...
* refactor: redesign render
- if stdout is not terminal, just write reply text to stdout
- rename repl_render_stream to markdown_stream
- deprecate cmd_render_stream
- use raw_stream to just print streaming reply text
* optimize rendering error
* optimize render_stream
11 months ago
sigoden
15efa17963
refactor: use ::: as multipline input indicator, deprecate """ ( #232 )
11 months ago
sigoden
e8461b8462
refactor: output info includes auto_copy and light_theme ( #230 )
11 months ago
sigoden
c99bd015aa
feat: temporarily use a role to send a message ( #227 )
11 months ago
sigoden
c256b6bae5
refactor: improve repl completer ( #226 )
11 months ago
sigoden
b07a112f89
feat: deprecate `.edit`, use """ instead ( #225 )
11 months ago
sigoden
6bb2ec05be
feat: add `config.prelude` to allow setting default role/session ( #224 )
11 months ago
sigoden
534733b77c
fix: unable to build on android using termux ( #222 )
11 months ago
sigoden
87aec71e08
refactor: use &GlobalConfig to avoid clone ( #217 )
11 months ago
sigoden
713c92bdde
chore: add one newline when caught repl error
11 months ago
sigoden
652b51509d
refactor: improve repl completer ( #199 )
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
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
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
680670e834
feat: support custom theme ( #187 )
11 months ago