summaryrefslogtreecommitdiffstats
path: root/src/config.rs
AgeCommit message (Collapse)AuthorLines
2023-03-08chore: optimize output newlinesigoden-12/+4
2023-03-08refactor: replace dump with print_now! (#35)sigoden-3/+3
2023-03-08fix: repl set save true not work if not rerun(#34)sigoden-20/+14
2023-03-07refactor: adjust repl (#30)sigoden-19/+5
- abandon .copy - rename .multiple => .editor - if command successed, do not output `Done` - if command failed, output `Error: <error message>`
2023-03-06fix: $AI_CONFIG_DIR points to the parent directory (#25)sigoden-3/+6
2023-03-06chore: release v0.4.0sigoden-1/+1
2023-03-06refactor: split src/repl.rs to submodules (#22)sigoden-39/+61
2023-03-06feat: add `.prompt` command (#21)sigoden-14/+37
* feat: add `.prompt` command * set temp role name
2023-03-05feat: add `.set` command (#20)sigoden-13/+139
* feat: add `.set` command * Add config.role
2023-03-05refactor: rename config.no_highlight to highlight (#19)sigoden-2/+6
2023-03-05chore: refactor error encapsulationsigoden-9/+8
2023-03-05refactor: message record format (#12)sigoden-2/+14
``` i am excited -------- 😃💥🎉 -------- ```
2023-03-05feat: add `.info` command (#11)sigoden-2/+7
2023-03-04refactor: replace config.highlight with config.no_highlight (#4)sigoden-10/+2
* refactor: replace config.highlight with config.no_highlight * update readme
2023-03-04feat: support highlight reply markdown (#3)sigoden-0/+11
* feat: support highlight reply markdown * migrate markdown highlighter from termimad to mdcat * optimize render No need to clear screen when there is no newline in reply token * handle ctrl-c when rendering stream * update readme * fix ctrlc don't abort acquire_stream when establish connection * ensure render_stream's dtect_ctrlc is exit before next readline This will make reedline don't throw err 'The cursor position could not be read within a normal duration'
2023-03-03refactor: split into separate modssigoden-9/+82
2023-03-03chore: optimize config pathsigoden-5/+23
2023-03-03refactor: config path and config datasigoden-6/+44
use yaml other than toml for configuration. use $AICHAT_CONFIG_DIR other than $HOME for config dir. split roles to seperate config file
2023-03-03feat: support save chat messages to filesigoden-1/+6
2023-03-03refactor: remove config::Role.first_sentensesigoden-3/+1
2023-03-02feat: add config.temperaturesigoden-0/+2
2023-03-02feat: support list roles with --list-rolessigoden-2/+2
2023-03-02init commitsigoden-0/+44