summaryrefslogtreecommitdiffstats
path: root/src
AgeCommit message (Collapse)AuthorLines
2023-03-08feat: add role-specific config (#42)sigoden-5/+32
Now we can set role temperature. For example: ``` - name: shell prompt: > I want you to act as a linux shell expert. I want you to answer only with bash code. Do not write explanations. temperature: 0.4 ```
2023-03-08chore: improve code by getting prompt from config (#39)sigoden-31/+20
2023-03-08fix: windows no stream output (#37)sigoden-6/+4
2023-03-08chore: no longer ignore any errorsigoden-10/+19
2023-03-08chore: optimize output newlinesigoden-20/+10
2023-03-08refactor: replace dump with print_now! (#35)sigoden-37/+48
2023-03-08fix: repl set save true not work if not rerun(#34)sigoden-42/+21
2023-03-08refactor: split long paragraphs for smoother stream output (#33)sigoden-34/+267
2023-03-08refactor: theme and code color (#32)sigoden-25/+85
2023-03-07feat: command mode supports stream out (#31)sigoden-166/+253
* feat: command mode supports stream out * update cli
2023-03-07refactor: adjust repl (#30)sigoden-66/+41
- abandon .copy - rename .multiple => .editor - if command successed, do not output `Done` - if command failed, output `Error: <error message>`
2023-03-07refactor: support highlighting more languages (#28)sigoden-2886/+28
2023-03-07refactor: optimize ctrl+c/ctrl+d abort handling (#27)sigoden-48/+104
2023-03-07refactor: use syntect for highlight, abandon mdcat (#26)sigoden-99/+3120
* refactor: use syntect for highlight, abandon mdcat * split src/render.rs to sub modules. embed a default theme * simulate typing effect. * fix format
2023-03-06chore: improve code by renameing some functionsigoden-10/+13
2023-03-06fix: $AI_CONFIG_DIR points to the parent directory (#25)sigoden-3/+6
2023-03-06chore: release v0.4.0sigoden-2/+2
2023-03-06chore: optimize cli helpsigoden-4/+4
2023-03-06feat: add `--no-highlight` option (#24)sigoden-3/+8
2023-03-06fix: combine pipe and cli args, disable highlight when pipe (#23)sigoden-3/+7
2023-03-06chore: optimize codesigoden-33/+46
2023-03-06refactor: split src/repl.rs to submodules (#22)sigoden-473/+517
2023-03-06feat: add `.prompt` command (#21)sigoden-24/+72
* feat: add `.prompt` command * set temp role name
2023-03-05feat: add `.set` command (#20)sigoden-143/+231
* feat: add `.set` command * Add config.role
2023-03-05refactor: rename config.no_highlight to highlight (#19)sigoden-7/+11
2023-03-05feat: repl command replaces `.editor` with `.multiline` (#18)sigoden-125/+50
You can use `.multiline` command to put multiline content ``` 〉.multiline { ::: abc ::: cdf ::: } ``` It's much easier than `.editor`.
2023-03-05chore: refactor error encapsulationsigoden-35/+25
2023-03-05feat: accept pipe (#17)sigoden-3/+10
`cat data | aichat` works
2023-03-05refactor: optimize clear screen (#16)sigoden-5/+36
2023-03-05refactor: adjusted command name (#14)sigoden-27/+26
* refactor: adjusted command name .clear => .clear screen .clear-history => .clear history .clear-role => .clear role * re-order commands in help text
2023-03-05refactor: optimize role prompt (#13)sigoden-14/+26
2023-03-05refactor: message record format (#12)sigoden-4/+31
``` i am excited -------- 😃💥🎉 -------- ```
2023-03-05feat: add `.info` command (#11)sigoden-12/+66
2023-03-05feat: add `.copy` command (#10)sigoden-20/+44
2023-03-05feat: add `.editor` command (#9)sigoden-15/+127
* feat: add `.editor` command Use `.editor` to edit/input multiline text * support paste
2023-03-04refactor: no need tui, just render stream directly (#8)sigoden-242/+32
2023-03-04chore: fix typossigoden-7/+7
2023-03-04fix: tui warp long paragraph (#6)sigoden-50/+58
* chore: optimize stream render * fix: tui textwrap long paragraph
2023-03-04refactor: use tui for better stream render (#5)sigoden-123/+234
* feat: show question in the begining of stream render * refactor: use tui for better stream render * trivial updates * fine-tune stream text merging
2023-03-04refactor: replace config.highlight with config.no_highlight (#4)sigoden-14/+6
* refactor: replace config.highlight with config.no_highlight * update readme
2023-03-04feat: support highlight reply markdown (#3)sigoden-59/+324
* 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-453/+612
2023-03-03chore: optimize config pathsigoden-12/+32
2023-03-03feat: support initial configuration itemssigoden-3/+24
2023-03-03refactor: config path and config datasigoden-28/+50
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-2/+33
2023-03-03chore: update readmesigoden-1/+1
2023-03-03refactor: remove config::Role.first_sentensesigoden-3/+2
2023-03-03feat: add .view commandsigoden-22/+51
2023-03-03feat: enable connect timeoutsigoden-23/+21