Commit Graph

110 Commits (0a4c0413ef0154cde2e3485ec0415e6069596a23)

Author SHA1 Message Date
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 8ab57ed74e
refactor: update description for cli options and config fields (#423) 1 month ago
sigoden 5d763fc10c
feat: add `.prompt` repl command (#420) 1 month ago
sigoden 8b806db857
feat: ctrlc won't exit repl and remove `ctrlc_exit` config (#419) 1 month ago
sigoden b9bde15c1f
feat: add config `buffer_editor` (#417) 2 months ago
sigoden 6dc332930b
feat: make built-in roles selectable and rename them (#412) 2 months ago
sigoden 568e9a06db
refactor: hide sytem roles from repl tab-completion (#407) 2 months ago
sigoden 4a88a3da04
refactor: `ctrlc_exit` config default to false (#403) 2 months ago
sigoden 2738988fc4
feat: add `ctrlc_exit` option to control REPL exit by ctrl+c (#391) 2 months ago
sigoden 68a1d98a3d
feat: add repl command `.save session` (#382) 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 a05c462531
fix: not dirty session when updating properties (#379) 2 months ago
sigoden 3180d1d485
refactor: seperate temperature from role/session (#378) 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 0ebc7955da
refactor: improve creating config for openai-compatible client (#374) 2 months ago
sigoden 527da63d18
refactor: do not automatically convert temperature value (#368) 2 months ago
sigoden 7279e43141
fix: color on non-truecolor terminal (#363)
* fix: color on non-truecolor terminal

* make ansicolor lower contrast
3 months ago
sigoden f3210d622a
refactor: remove role field from session struct (#356) 3 months ago
sigoden aed243c3aa
feat: allow use of temporary role in a session (#348) 3 months ago
sigoden 8f14498969
fix: erratic behaviour when using temp role in a session (#347) 3 months ago
sigoden d5b10ea0c1 chore: fix typos 3 months ago
sigoden 46cb320aa5 chore: spell check 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 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
3 months ago
sigoden e443905dc1
feat: add `.clear messages` to clear session messages (#332) 3 months ago
sigoden 7e32787dba chore: improve code quanity on ReplCommand/State 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 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 6c0204e696
refactor: change header of messages saved to markdown (#317) 3 months ago
sigoden 1c9ca1b002
feat: custom REPL prompt (#283) 5 months ago
sigoden 89fefb4d1a
refactor: remove path existence indicator from info (#282) 5 months ago
sigoden 10e3b6d234
chore: update change session error message (#267) 6 months ago
sigoden c58912ba64
refactor: sort of some complete type (#253) 6 months ago
sigoden 2508d56598
feat: state-aware completer (#251) 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 819f50d9b1
fix: unexpected additional newline in REPL (#231) 7 months ago
sigoden e8461b8462
refactor: output info includes auto_copy and light_theme (#230) 7 months ago
sigoden c99bd015aa
feat: temporarily use a role to send a message (#227) 7 months ago
sigoden c256b6bae5
refactor: improve repl completer (#226) 7 months ago
sigoden 6bb2ec05be
feat: add `config.prelude` to allow setting default role/session (#224) 7 months ago
sigoden d40f104f66
feat: allow the use of an unlisted model (#219) 7 months ago
sigoden 4380b4f20b
refactor: rename azure to azure_openai, improve register_client! (#208) 7 months ago
sigoden 887bf0a744
fix: fix rendering markdown in REPL (#207) 7 months ago
sigoden f9c40e52da
refactor: improve code quanity (#203)
- update field name of ModelInfo
- rename ModelInfo to Model
7 months ago