summaryrefslogtreecommitdiffstats
path: root/src
AgeCommit message (Collapse)AuthorLines
2023-11-03refactor: rename azure-openai to azure (#204)sigoden-28/+11
2023-11-03refactor: improve code quanity (#203)sigoden-84/+82
- update field name of ModelInfo - rename ModelInfo to Model
2023-11-02refactor: optimize render (#202)sigoden-30/+75
2023-11-02fix: incorrect last line render in command mode (#201)sigoden-1/+3
2023-11-02feat: add `.set auto_copy` (#200)sigoden-0/+5
2023-11-02chore: add one newline when caught repl errorsigoden-1/+2
2023-11-02refactor: improve repl completer (#199)sigoden-105/+191
2023-11-02refactor: improve code quanity (#197)sigoden-51/+51
- move model_info.rs/message.rs to clients/ - rename SharedConfig to GlobalConfig
2023-11-02refactor: improve code quanity (#196)sigoden-477/+443
- rewrite Repl, remove ReplHandler - move ReplyStreamHandler to repl/ and rename it to ReplyHandler - deprecate utils::print_now - refactor session info
2023-11-02refactor: set tokens count factors (#195)sigoden-22/+40
2023-11-01chore: spellcheck typossigoden-6/+6
2023-11-01refactor: improve code quanity (#194)sigoden-94/+199
- extends ModelInfo for tokens calculating - refactor config/session.rs, improve export, render, getter/setter - modify main.rs, allow --model override session.model
2023-11-01refactor: add/use openai_compatible_client macrosigoden-110/+69
2023-11-01refactor: use reqwest-eventsource as sse clientsigoden-19/+31
2023-11-01refactor: clients/* and config.rs (#193)sigoden-521/+579
- 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
2023-10-31chore: move split_line_* from repl/cmd.rs to utils/ (#190)sigoden-220/+223
2023-10-31chore: refactor config descriptionsigoden-5/+8
2023-10-31feat: improve client (#189)sigoden-318/+306
2023-10-31fix: uncorrected render in command mode (#188)sigoden-4/+10
2023-10-31feat: support custom theme (#187)sigoden-106/+45
2023-10-31feat: support OPENAI_API_BASE (#186)sigoden-2/+7
2023-10-31feat: support azure-openai (#166)sigoden-1/+197
2023-10-31fix: no last newline in reply text on windows os (#185)sigoden-1/+5
2023-10-30feat: add `.info role` and `.info session` (#183)sigoden-37/+95
2023-10-30feat: force nowrap if no tty/terminal (#182)sigoden-7/+8
2023-10-30chore: update readme and cli helpsigoden-19/+19
2023-10-30fix: dry run on role or session (#181)sigoden-61/+171
2023-10-30chore: spellchecksigoden-18/+18
2023-10-30feat: deprecate .clear command (#180)sigoden-48/+58
2023-10-30feat: deprecate history file (#179)sigoden-73/+6
2023-10-30fix: bugs between sesison/role (#178)sigoden-36/+52
2023-10-30fix: detect light theme only by env var (#177)sigoden-267/+24
2023-10-30feat: deprecate prompt, remove `--prompt` and `.prompt` (#176)sigoden-49/+1
2023-10-30chore: remove unnecessary clippy macrossigoden-27/+0
2023-10-30feat: show role info with `--role <name> --info` (#175)sigoden-0/+9
2023-10-30feat: support textwrap (#171)sigoden-174/+387
* 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
2023-10-29feat: add `--light-theme` option (#169)sigoden-19/+25
2023-10-29feat: autodetect light theme on unix-like os (#168)sigoden-7/+280
2023-10-29fix: unexpcted duplicate lines in kitty (#167)sigoden-42/+38
2023-10-29chore: improve client-related code qualitysigoden-73/+55
2023-10-29chore: improve code quanitysigoden-3/+3
2023-10-28chore: improve code and docsigoden-3/+3
2023-10-28refactor: improve environment variables (#163)sigoden-17/+31
Rename `AICHAT_API_KEY` to `OPENAI_API_KEY` Add `LOCALAI_API_KEY`
2023-10-28feat: enhance session/conversation (#162)sigoden-190/+387
* feat: enhance session/conversation * updates * updates * cut version v0.9.0-rc2 * add .session name completion
2023-10-27fix: .copy don't works on some linux distro (#161)sigoden-10/+18
2023-10-27feat: change config.vi_keybindings to config.keybindings (#158)sigoden-5/+26
2023-10-27chore: update readme and commentssigoden-4/+4
2023-10-27chore: change left-prompt for conversation (#157)sigoden-1/+1
2023-10-27chore: replace atty with is-terminal (#156)sigoden-6/+6
2023-10-27refactor: streaming input text in dry-run mode (#154)sigoden-2/+15