Commit Graph

502 Commits (main)
 

Author SHA1 Message Date
sigoden 811e605fbf
fix: don't ignore '\n\n' reply at begin (#206) 7 months ago
sigoden c20cd20d53
fix: wrap and tokenize algorithm (#205)
* fix: wrap and tokenize algorithm

* update tests

* remove unnecessary tokenize from tiktoken
7 months ago
sigoden b34e40e25f
refactor: rename azure-openai to azure (#204) 7 months ago
sigoden f9c40e52da
refactor: improve code quanity (#203)
- update field name of ModelInfo
- rename ModelInfo to Model
7 months ago
sigoden dce6877f5d
refactor: optimize render (#202) 7 months ago
sigoden 16eba9baa1
fix: incorrect last line render in command mode (#201) 7 months ago
sigoden eff69a482d
feat: add `.set auto_copy` (#200) 7 months ago
sigoden 713c92bdde chore: add one newline when caught repl error 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 5c7bfd92ff
refactor: set tokens count factors (#195) 7 months ago
sigoden 0238c8734e chore: spellcheck typos 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 da3c541b68 refactor: add/use openai_compatible_client macro 7 months ago
sigoden 8d76fc77fb refactor: use reqwest-eventsource as sse client 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 64202758ec
chore: move split_line_* from repl/cmd.rs to utils/ (#190) 7 months ago
sigoden bd3fc8e657 chore: refactor config description 7 months ago
sigoden a137483b03
feat: improve client (#189) 7 months ago
sigoden 9b614600c6
fix: uncorrected render in command mode (#188) 7 months ago
sigoden 680670e834
feat: support custom theme (#187) 7 months ago
sigoden 84004fd576
feat: support OPENAI_API_BASE (#186) 7 months ago
sigoden 36380475d5
feat: support azure-openai (#166) 7 months ago
sigoden 86fd9d207e
fix: no last newline in reply text on windows os (#185) 7 months ago
sigoden eb023e5759 chore: rename config.yaml to config.example.yaml 7 months ago
sigoden 54cfac427d chore: add demo `config.yaml` 7 months ago
sigoden d2e06bf716 chore: update readme 7 months ago
sigoden e86ad7dc16
feat: add `.info role` and `.info session` (#183) 7 months ago
sigoden 42339fac42 chore: add issue templates 7 months ago
sigoden 4909a20f2e
feat: force nowrap if no tty/terminal (#182) 7 months ago
sigoden 2203163938 chore: update readme and cli help 7 months ago
sigoden 5c0383f908
fix: dry run on role or session (#181) 7 months ago
sigoden 2168610dbd chore: spellcheck 7 months ago
sigoden 23e9fb5bbf
feat: deprecate .clear command (#180) 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 f2c9f00bda
fix: detect light theme only by env var (#177) 7 months ago
sigoden b3e6879438
feat: deprecate prompt, remove `--prompt` and `.prompt` (#176) 7 months ago
sigoden 44ea384ee5 chore: remove unnecessary clippy macros 7 months ago
Ajay Gonepuri (GONAPCORP) 49595053f0
chore: fix typo (#170) 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 1ced15a209
feat: autodetect light theme on unix-like os (#168) 7 months ago
sigoden 10b1d4b4de
fix: unexpcted duplicate lines in kitty (#167) 7 months ago
sigoden 33a9aacf39 chore: update readme 7 months ago
sigoden 4fae3724be chore: update readme 7 months ago
sigoden 985f8c0946 chore: improve client-related code quality 7 months ago
sigoden 557bed1459 chore: update Cargo.toml 7 months ago