summaryrefslogtreecommitdiffstats
path: root/src/repl/mod.rs
AgeCommit message (Collapse)AuthorLines
2023-11-27feat: state-aware completer (#251)sigoden-18/+66
2023-11-27chore: upgrade deps (#250)sigoden-3/+2
2023-11-27feat: support vision (#249)sigoden-26/+20
* 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
2023-11-13feat: extend `.read` to support files and messages (#242)sigoden-8/+21
2023-11-08refactor: improve render (#235)sigoden-14/+3
* 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
2023-11-08refactor: use ::: as multipline input indicator, deprecate """ (#232)sigoden-4/+4
2023-11-08refactor: output info includes auto_copy and light_theme (#230)sigoden-1/+1
2023-11-07feat: temporarily use a role to send a message (#227)sigoden-4/+18
2023-11-07feat: deprecate `.edit`, use """ instead (#225)sigoden-20/+27
2023-11-07feat: add `config.prelude` to allow setting default role/session (#224)sigoden-1/+1
2023-11-07fix: unable to build on android using termux (#222)sigoden-14/+3
2023-11-07refactor: use &GlobalConfig to avoid clone (#217)sigoden-5/+5
2023-11-02chore: add one newline when caught repl errorsigoden-0/+1
2023-11-02refactor: improve repl completer (#199)sigoden-45/+45
2023-11-02refactor: improve code quanity (#197)sigoden-7/+5
- move model_info.rs/message.rs to clients/ - rename SharedConfig to GlobalConfig
2023-11-02refactor: improve code quanity (#196)sigoden-56/+221
- rewrite Repl, remove ReplHandler - move ReplyStreamHandler to repl/ and rename it to ReplyHandler - deprecate utils::print_now - refactor session info
2023-10-31feat: support custom theme (#187)sigoden-1/+0
2023-10-30feat: add `.info role` and `.info session` (#183)sigoden-11/+18
2023-10-30feat: deprecate .clear command (#180)sigoden-28/+38
2023-10-30feat: deprecate history file (#179)sigoden-17/+2
2023-10-30fix: bugs between sesison/role (#178)sigoden-1/+1
2023-10-30feat: deprecate prompt, remove `--prompt` and `.prompt` (#176)sigoden-10/+1
2023-10-29chore: improve code quanitysigoden-2/+2
2023-10-28feat: enhance session/conversation (#162)sigoden-6/+7
* feat: enhance session/conversation * updates * updates * cut version v0.9.0-rc2 * add .session name completion
2023-10-27fix: parse command fails if command following newline (#153)sigoden-19/+13
2023-10-26feat: add .edit command for multi-line editing (#151)sigoden-7/+18
2023-10-26refactor: improve code quanitysigoden-1/+1
2023-10-26feat: add .read command (#145)Leo Bergnéhr-1/+6
2023-10-26refactor: improve code quanitysigoden-3/+2
remove tokio::runtime::Runtime from client
2023-10-26feat: support multi bots and custom url (#150)sigoden-2/+2
2023-10-24feat: use backslash at end of line for multiline text (#147)sigoden-11/+1
BREAKING CHANGE: use backslash at end of line for multiline text ``` 〉.set dry_run true 〉abc \ def \ ijk >>> The following message consumes 12 tokens. abc def ijk ``` Deprecate old {}/() multi-line editing
2023-10-17chore: update depssigoden-3/+3
2023-07-10fix: minor code cleanup and pedantic lints (#134)Anthony Rubick-9/+8
2023-05-04feat: add `.copy` command (#119)sigoden-1/+5
2023-05-04chore: trivial updatessigoden-1/+1
2023-05-04feat: support backeted paste (#117)sigoden-2/+4
2023-03-16feat: support multiple models (#71)sigoden-1/+6
2023-03-12chore: optimize readline multilinesigoden-0/+1
2023-03-11feat: add support for NO_COLOR (#67)sigoden-5/+5
2023-03-10chore: update `.help` output textsigoden-2/+6
2023-03-10feat: type `{` `[` `(` to enter multi-line editing mode (#58)sigoden-40/+75
Abandon `.editor` command, it's too complicated.
2023-03-10chore: improve code quality, split rep/prompt.rs from repl/init.rssigoden-2/+5
2023-03-09feat: add remain tokens indicator and max tokens guard (#50)sigoden-1/+1
2023-03-09feat: support conversation (#48)sigoden-4/+10
2023-03-09feat: add role info to readline indicator (#47)sigoden-6/+2
``` coder〉 ```
2023-03-09refactor: imports order and groupsigoden-3/+3
2023-03-09refactor: extra spaces are allowed around repl commandsigoden-4/+6
2023-03-08refactor: replace dump with print_now! (#35)sigoden-20/+14
2023-03-07refactor: adjust repl (#30)sigoden-19/+11
- abandon .copy - rename .multiple => .editor - if command successed, do not output `Done` - if command failed, output `Error: <error message>`
2023-03-07refactor: optimize ctrl+c/ctrl+d abort handling (#27)sigoden-11/+18