summaryrefslogtreecommitdiffstats
path: root/src/main.rs
AgeCommit message (Collapse)AuthorLines
2024-05-15fix: unexpect enter repl if have pipe-in but no text args (#512)sigoden-1/+1
2024-05-14feat: remove tiktoken (#506)sigoden-7/+1
2024-05-14feat: allow binding model to the role (#505)sigoden-0/+1
2024-05-14refactor: config::Input (#503)sigoden-9/+8
2024-05-11refactor: list roles includeing builtin roles (#499)sigoden-7/+4
2024-05-09refactor: improve revise command executionsigoden-3/+1
2024-05-05refactor: no spinner for `aichat -e` if no terminal stdout (#483)sigoden-5/+11
2024-04-29feat: non-streaming returns completion stats (#456)sigoden-2/+2
2024-04-28feat: add `--prompt` option (#454)sigoden-1/+3
2024-04-24refactor: adjust order of execute actionssigoden-10/+9
2024-04-24feat: serve all LLMs as OpenAI-compatible API (#431)sigoden-23/+38
2024-04-23refactor: more async code (#427)sigoden-22/+25
2024-04-21refactor: tell user session compression (#426)sigoden-18/+2
2024-04-21refactor: shell execution with spinner and select prompt (#425)sigoden-19/+34
2024-04-20refactor: update description for cli options and config fields (#423)sigoden-1/+1
2024-04-18refactor: adjust command revision promptsigoden-1/+4
2024-04-18feat: add config `buffer_editor` (#417)sigoden-1/+1
2024-04-15feat: always use stream unless set `--no-stream` explicitly (#415)sigoden-2/+3
2024-04-14refactor: adjust indicator text and render strategysigoden-2/+3
2024-04-15feat: shell commands support revision (#413)sigoden-18/+20
2024-04-14feat: make built-in roles selectable and rename them (#412)sigoden-10/+10
2024-04-10feat: `-f/--file` take one value and no enter REPL (#399)sigoden-14/+25
2024-03-27refactor: config add in_repl property (#381)sigoden-1/+1
2024-03-27feat: `save_session` config item can be null (#380)sigoden-1/+1
2024-03-27feat: add sepereate `save_session` config item to session (#377)sigoden-3/+3
2024-03-27feat: add `save_session` config item and `--save-session` cli option (#370)Patrick Jackson-3/+5
* fix: sessions should save when exiting * feat: improve save sessions * feat: do not allow saving the temp session name * feat: allow creating a session without interactive use * feat: add `save_session` config and `--save-session` option --------- Co-authored-by: sigoden <sigoden@gmail.com>
2024-03-10feat: allow use of temporary role in a session (#348)sigoden-3/+7
2024-03-06chore: spell checksigoden-2/+2
2024-03-03feat: allow overriding execute/code role (#331)sigoden-15/+13
2024-03-02refactor: auto_copy works when executing command (#328)sigoden-4/+6
2024-03-02feat: add `-c/--code` to generate only code (#327)sigoden-7/+18
2024-02-25refactor: improve saving messages (#322)sigoden-0/+1
2024-02-25chore: improve execute commands promptsigoden-0/+2
2024-02-24refactor: improve prompt error handling (#319)sigoden-3/+2
2024-02-23feat: support `-e/--execute` to execute shell command (#318)sigoden-31/+101
2024-01-13feat: supports model capabilities (#297)sigoden-2/+3
1. automatically switch to the model that has the necessary capabilities. 2. throw an error if the client does not have a model with the necessary capabilities
2023-11-27feat: support vision (#249)sigoden-9/+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-08refactor: improve code quanity (#238)sigoden-5/+0
2023-11-08refactor: improve render (#235)sigoden-29/+27
* 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-07feat: add `config.prelude` to allow setting default role/session (#224)sigoden-0/+1
2023-11-07refactor: use &GlobalConfig to avoid clone (#217)sigoden-4/+4
2023-11-02refactor: optimize render (#202)sigoden-0/+3
2023-11-02refactor: improve repl completer (#199)sigoden-4/+4
2023-11-02refactor: improve code quanity (#197)sigoden-5/+5
- move model_info.rs/message.rs to clients/ - rename SharedConfig to GlobalConfig
2023-11-02refactor: improve code quanity (#196)sigoden-13/+9
- rewrite Repl, remove ReplHandler - move ReplyStreamHandler to repl/ and rename it to ReplyHandler - deprecate utils::print_now - refactor session info
2023-11-01refactor: improve code quanity (#194)sigoden-4/+4
- 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-2/+2
- 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-31feat: support custom theme (#187)sigoden-1/+1
2023-10-30feat: add `.info role` and `.info session` (#183)sigoden-1/+1
2023-10-30chore: spellchecksigoden-2/+2