summaryrefslogtreecommitdiffstats
path: root/src
AgeCommit message (Expand)AuthorLines
2023-03-09feat: add config.conversation_first (#55)sigoden-15/+32
2023-03-09refactor: no need to confirm conversation when token used outsigoden-6/+8
2023-03-09fix: csharp and php do not render correctlysigoden-3/+29
2023-03-09refactor: optimize counting tokens (#53)sigoden-58/+42
2023-03-09feat: support two types of role prompts (#52)sigoden-103/+192
2023-03-09refactor: trivial updatessigoden-9/+3
2023-03-09feat: add remain tokens indicator and max tokens guard (#50)sigoden-42/+667
2023-03-09fix: abort by ctrlc unexpectedly prints error message (#49)sigoden-4/+15
2023-03-09feat: support conversation (#48)sigoden-56/+200
2023-03-09feat: add role info to readline indicator (#47)sigoden-16/+57
2023-03-09refactor: imports order and groupsigoden-27/+24
2023-03-09refactor: replace Arc<Refcell<Config>> with Arc<Mutex<Config>> (#46)sigoden-26/+27
2023-03-09refactor: extra spaces are allowed around repl commandsigoden-4/+6
2023-03-08chore: optimize newline again (#43)sigoden-5/+20
2023-03-08feat: add role-specific config (#42)sigoden-5/+32
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
2023-03-07refactor: adjust repl (#30)sigoden-66/+41
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
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
2023-03-05feat: add `.set` command (#20)sigoden-143/+231
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
2023-03-05chore: refactor error encapsulationsigoden-35/+25
2023-03-05feat: accept pipe (#17)sigoden-3/+10
2023-03-05refactor: optimize clear screen (#16)sigoden-5/+36
2023-03-05refactor: adjusted command name (#14)sigoden-27/+26
2023-03-05refactor: optimize role prompt (#13)sigoden-14/+26
2023-03-05refactor: message record format (#12)sigoden-4/+31
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
2023-03-04refactor: no need tui, just render stream directly (#8)sigoden-242/+32