sigoden
0a4c0413ef
feat: serve all LLMs as OpenAI-compatible API ( #431 )
1 month ago
sigoden
1cc89eff51
refactor: more async code ( #427 )
1 month ago
sigoden
c5506fe393
refactor: tell user session compression ( #426 )
1 month ago
sigoden
b3162a72b5
refactor: shell execution with spinner and select prompt ( #425 )
1 month ago
sigoden
8ab57ed74e
refactor: update description for cli options and config fields ( #423 )
1 month ago
sigoden
e78750412d
refactor: adjust command revision prompt
2 months ago
sigoden
b9bde15c1f
feat: add config `buffer_editor` ( #417 )
2 months ago
sigoden
9149954c7b
feat: always use stream unless set `--no-stream` explicitly ( #415 )
2 months ago
sigoden
16e9c647d4
refactor: adjust indicator text and render strategy
2 months ago
sigoden
38e594505b
feat: shell commands support revision ( #413 )
2 months ago
sigoden
6dc332930b
feat: make built-in roles selectable and rename them ( #412 )
2 months ago
sigoden
4a5ee3ecb7
feat: `-f/--file` take one value and no enter REPL ( #399 )
2 months ago
sigoden
4cfd6c8e9f
refactor: config add in_repl property ( #381 )
2 months ago
sigoden
bd9a6a8725
feat: `save_session` config item can be null ( #380 )
2 months ago
sigoden
8da9fa5f4c
feat: add sepereate `save_session` config item to session ( #377 )
2 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>
2 months ago
sigoden
aed243c3aa
feat: allow use of temporary role in a session ( #348 )
3 months ago
sigoden
46cb320aa5
chore: spell check
3 months ago
sigoden
8421f23b45
feat: allow overriding execute/code role ( #331 )
3 months ago
sigoden
b2f86f2899
refactor: auto_copy works when executing command ( #328 )
3 months ago
sigoden
3c16aff591
feat: add `-c/--code` to generate only code ( #327 )
3 months ago
sigoden
c773e8d2e1
refactor: improve saving messages ( #322 )
3 months ago
sigoden
a3fbf71c1c
chore: improve execute commands prompt
3 months ago
sigoden
21d1be5bed
refactor: improve prompt error handling ( #319 )
3 months ago
sigoden
7638412128
feat: support `-e/--execute` to execute shell command ( #318 )
3 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
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
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
7 months ago
sigoden
6bb2ec05be
feat: add `config.prelude` to allow setting default role/session ( #224 )
7 months ago
sigoden
87aec71e08
refactor: use &GlobalConfig to avoid clone ( #217 )
7 months ago
sigoden
dce6877f5d
refactor: optimize render ( #202 )
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
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
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
sigoden
680670e834
feat: support custom theme ( #187 )
7 months ago
sigoden
e86ad7dc16
feat: add `.info role` and `.info session` ( #183 )
7 months ago
sigoden
2168610dbd
chore: spellcheck
7 months ago
sigoden
ba3cc4f15d
feat: deprecate history file ( #179 )
7 months ago
sigoden
2f9121e515
fix: bugs between sesison/role ( #178 )
7 months ago
sigoden
b3e6879438
feat: deprecate prompt, remove `--prompt` and `.prompt` ( #176 )
7 months ago
sigoden
651516d49a
feat: show role info with `--role <name> --info` ( #175 )
7 months ago
sigoden
b276dfedd2
feat: support textwrap ( #171 )
...
* feat: support textwrap
* improve cmd_render_stream
* done cmd_render_stream
* add `-w` alias to `--wrap`
* done repl_render_stream
* add `config.wrap_code`
* remove cached config.wrap_width
* fix unxpected duplicate lines on kitty
* refactor markdown render
* improve render
* fix test
7 months ago
sigoden
632a6fcc0b
feat: add `--light-theme` option ( #169 )
7 months ago
sigoden
10b1d4b4de
fix: unexpcted duplicate lines in kitty ( #167 )
7 months ago
sigoden
bc44026ff8
feat: enhance session/conversation ( #162 )
...
* feat: enhance session/conversation
* updates
* updates
* cut version v0.9.0-rc2
* add .session name completion
7 months ago
sigoden
0179bef80d
chore: replace atty with is-terminal ( #156 )
7 months ago
sigoden
66fd547c0f
refactor: improve code quanity
...
remove tokio::runtime::Runtime from client
7 months ago