Commit Graph

76 Commits (6c0204e6965bf13c3d883ea5fa65d52415acd530)

Author SHA1 Message Date
sigoden 6c0204e696
refactor: change header of messages saved to markdown (#317) 7 months ago
sigoden 1c9ca1b002
feat: custom REPL prompt (#283) 9 months ago
sigoden 89fefb4d1a
refactor: remove path existence indicator from info (#282) 9 months ago
sigoden 10e3b6d234
chore: update change session error message (#267) 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 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 819f50d9b1
fix: unexpected additional newline in REPL (#231) 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 6bb2ec05be
feat: add `config.prelude` to allow setting default role/session (#224) 11 months ago
sigoden d40f104f66
feat: allow the use of an unlisted model (#219) 11 months ago
sigoden 4380b4f20b
refactor: rename azure to azure_openai, improve register_client! (#208) 11 months ago
sigoden 887bf0a744
fix: fix rendering markdown in REPL (#207) 11 months ago
sigoden f9c40e52da
refactor: improve code quanity (#203)
- update field name of ModelInfo
- rename ModelInfo to Model
11 months ago
sigoden dce6877f5d
refactor: optimize render (#202) 11 months ago
sigoden eff69a482d
feat: add `.set auto_copy` (#200) 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 5c7bfd92ff
refactor: set tokens count factors (#195) 11 months ago
sigoden 0238c8734e chore: spellcheck typos 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 64202758ec
chore: move split_line_* from repl/cmd.rs to utils/ (#190) 11 months ago
sigoden bd3fc8e657 chore: refactor config description 11 months ago
sigoden a137483b03
feat: improve client (#189) 11 months ago
sigoden 680670e834
feat: support custom theme (#187) 11 months ago
sigoden e86ad7dc16
feat: add `.info role` and `.info session` (#183) 11 months ago
sigoden 4909a20f2e
feat: force nowrap if no tty/terminal (#182) 11 months ago
sigoden 2168610dbd chore: spellcheck 11 months ago
sigoden ba3cc4f15d
feat: deprecate history file (#179) 11 months ago
sigoden 2f9121e515
fix: bugs between sesison/role (#178) 11 months ago
sigoden f2c9f00bda
fix: detect light theme only by env var (#177) 11 months ago
sigoden b3e6879438
feat: deprecate prompt, remove `--prompt` and `.prompt` (#176) 11 months ago
sigoden 44ea384ee5 chore: remove unnecessary clippy macros 11 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
11 months ago
sigoden 1ced15a209
feat: autodetect light theme on unix-like os (#168) 11 months ago
sigoden 7f5bad6474 chore: improve code and doc 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 bc44026ff8
feat: enhance session/conversation (#162)
* feat: enhance session/conversation

* updates

* updates

* cut version v0.9.0-rc2

* add .session name completion
11 months ago
sigoden aa43612d91
feat: change config.vi_keybindings to config.keybindings (#158) 11 months ago
sigoden dbbbbfd5d6 chore: update readme and comments 11 months ago
sigoden 47818159a7
refactor: streaming input text in dry-run mode (#154) 11 months ago
sigoden 7d8564cafb
feat: support multi bots and custom url (#150) 11 months ago
sigoden f4160ff85b
feat: suppport vi keybindings (#148) 11 months ago
Jackson Goode 30daa40eb0
fix: grammar/wording corrections (#135) 1 year ago
Anthony Rubick 97fc7de675
fix: minor code cleanup and pedantic lints (#134) 1 year ago
sigoden ec51b84290
feat: add new model gpt-3.5-turbo-16k (#126) 1 year ago