summaryrefslogtreecommitdiffstats
path: root/src/config
AgeCommit message (Collapse)AuthorLines
2023-11-01chore: spellcheck typossigoden-4/+4
2023-11-01refactor: improve code quanity (#194)sigoden-83/+184
- 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: clients/* and config.rs (#193)sigoden-50/+103
- 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-1/+1
2023-10-31chore: refactor config descriptionsigoden-5/+8
2023-10-31feat: improve client (#189)sigoden-23/+45
2023-10-31feat: support custom theme (#187)sigoden-2/+26
2023-10-30feat: add `.info role` and `.info session` (#183)sigoden-20/+53
2023-10-30feat: force nowrap if no tty/terminal (#182)sigoden-7/+8
2023-10-30chore: spellchecksigoden-5/+5
2023-10-30feat: deprecate history file (#179)sigoden-5/+0
2023-10-30fix: bugs between sesison/role (#178)sigoden-20/+43
2023-10-30fix: detect light theme only by env var (#177)sigoden-8/+6
2023-10-30feat: deprecate prompt, remove `--prompt` and `.prompt` (#176)sigoden-28/+0
2023-10-30chore: remove unnecessary clippy macrossigoden-7/+0
2023-10-30feat: show role info with `--role <name> --info` (#175)sigoden-0/+7
2023-10-30feat: support textwrap (#171)sigoden-2/+41
* 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: autodetect light theme on unix-like os (#168)sigoden-3/+18
2023-10-29chore: improve code quanitysigoden-1/+1
2023-10-28chore: improve code and docsigoden-3/+3
2023-10-28refactor: improve environment variables (#163)sigoden-1/+1
Rename `AICHAT_API_KEY` to `OPENAI_API_KEY` Add `LOCALAI_API_KEY`
2023-10-28feat: enhance session/conversation (#162)sigoden-156/+329
* feat: enhance session/conversation * updates * updates * cut version v0.9.0-rc2 * add .session name completion
2023-10-27feat: change config.vi_keybindings to config.keybindings (#158)sigoden-4/+25
2023-10-27chore: update readme and commentssigoden-4/+4
2023-10-27refactor: streaming input text in dry-run mode (#154)sigoden-1/+1
2023-10-26feat: support multi bots and custom url (#150)sigoden-110/+82
2023-10-24feat: suppport vi keybindings (#148)sigoden-0/+4
2023-07-10fix: grammar/wording corrections (#135)Jackson Goode-4/+4
2023-07-10fix: minor code cleanup and pedantic lints (#134)Anthony Rubick-51/+51
2023-06-19feat: add new model gpt-3.5-turbo-16k (#126)sigoden-1/+2
2023-05-04feat: add `.copy` command (#119)sigoden-16/+1
2023-05-04feat: add `config.auto_copy` (#102)shane s-0/+18
* added config option to copy all ChatGPT output to clipboard * formatted with * updates --------- Co-authored-by: sigoden <sigoden@gmail.com>
2023-05-04fix: config file with strict perms (#118)sigoden-0/+6
2023-03-22fix: mask api_key/organization_id in info text (#93)sigoden-2/+5
2023-03-20feat: add `--dry-run` (#83)sigoden-3/+0
2023-03-20feat: check token usage in dry_run mode (#82)sigoden-11/+15
2023-03-17feat: add `config.organization_id` (#77)sigoden-12/+12
2023-03-16feat: add `config.connect_timeout` (#76)sigoden-0/+9
2023-03-16feat: support multiple models (#71)sigoden-18/+49
2023-03-13chore: optimzie role argssigoden-5/+8
2023-03-13feat: support role args (#69)sigoden-7/+45
* feat: support role args We can use role args to pass some additional arguments to the prompt. ``` - name: convert:json:yaml prompt: convert __ARG1__ below to __ARG2__ ``` `:json:yaml` is `role args`. It has two args: - arg1 `json`, it will replace __ARG1__ in prompt - arg2 `yaml`, it will replace __ARG2__ in prompt ``` 〉.role convert:json:yaml name: convert:json:yaml prompt: convert json below to yaml temperature: null 〉.role convert:yaml:json name: convert:yaml:json prompt: convert yaml below to json temperature: null ``` different role args, will generate different prompts. * small updates
2023-03-12feat: support HTTPS_PROXY and ALL_PROXY (#68)sigoden-0/+10
2023-03-11feat: add support for NO_COLOR (#67)sigoden-2/+14
2023-03-11feat: support light theme (#65)sigoden-5/+15
There are two ways to enable the light theme: - add `light_theme: true` to config.yaml - use `AICHAT_LIGHT_THEME=true` env var
2023-03-11feat: support more env vars (#63)sigoden-30/+96
- AICHAT_CONFIG_DIR: sepecify the configuration directory - AICHAT_ROLES_FILE: set the `roles.yaml` file path - AICHAT_API_KEY: set the api key
2023-03-11feat: provide `--prompt` for adding a prompt from cli (#62)sigoden-1/+1
2023-03-10feat: type `{` `[` `(` to enter multi-line editing mode (#58)sigoden-1/+1
Abandon `.editor` command, it's too complicated.
2023-03-10chore: opitmize code, move MAX_TOKENS related to config/message.rssigoden-9/+15
2023-03-10fix: forbid .clear role in middle of conversationsigoden-0/+15
2023-03-10fix: cli specify role is not applied when conversation_first set true (#57)sigoden-3/+7
close #56