Commit Graph

233 Commits (5bfe95d31110e75e84626598f033805b0ae4326c)
 

Author SHA1 Message Date
sigoden 05d20f207f
feat: add remain tokens indicator and max tokens guard (#50) 1 year ago
sigoden c7eb261abc
fix: abort by ctrlc unexpectedly prints error message (#49) 1 year ago
sigoden a62e461e38
feat: support conversation (#48) 1 year ago
sigoden a7f2da156c
feat: add role info to readline indicator (#47)
```
coder〉
```
1 year ago
sigoden e78b5f7c58 refactor: imports order and group 1 year ago
sigoden 1ec451da89
refactor: replace Arc<Refcell<Config>> with Arc<Mutex<Config>> (#46) 1 year ago
sigoden ebd3cb2401 chore: update readme 1 year ago
sigoden 00ba8b5108 refactor: extra spaces are allowed around repl command 1 year ago
sigoden ed905e3bd1 chore: fix cargo keyword 1 year ago
sigoden 7270308a24 chore: release v0.5.0 1 year ago
sigoden 9d32837669
chore: optimize newline again (#43)
* chore: optimize newline again

command mode: should no extra newline
chat mode: should have one newline

* fix windows newline

* fix macos newline
1 year ago
sigoden 56483e04f0
feat: add role-specific config (#42)
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
```
1 year ago
sigoden 2539e24fe9
chore: improve code by getting prompt from config (#39) 1 year ago
sigoden ee81275431
fix: windows no stream output (#37) 1 year ago
sigoden 2a7a6f5f27 chore: no longer ignore any error 1 year ago
sigoden 4e729db237 chore: optimize output newline 1 year ago
sigoden f694a59dcc
refactor: replace dump with print_now! (#35) 1 year ago
sigoden b7cb6f89f1
fix: repl set save true not work if not rerun(#34) 1 year ago
sigoden b05fce7bca
refactor: split long paragraphs for smoother stream output (#33) 1 year ago
sigoden ec1c4bcf8f
refactor: theme and code color (#32) 1 year ago
sigoden 360264121c
feat: command mode supports stream out (#31)
* feat: command mode supports stream out

* update cli
1 year ago
sigoden c7fcdb1744
refactor: adjust repl (#30)
- abandon .copy
- rename .multiple => .editor
- if command successed, do not output `Done`
- if command failed, output `Error: <error message>`
1 year ago
sigoden d73be65b07
refactor: support highlighting more languages (#28) 1 year ago
sigoden 11dc4d104b
refactor: optimize ctrl+c/ctrl+d abort handling (#27) 1 year ago
sigoden 1640456049
refactor: use syntect for highlight, abandon mdcat (#26)
* refactor: use syntect for highlight, abandon mdcat

* split src/render.rs to sub modules. embed a default theme

* simulate typing effect.

* fix format
1 year ago
sigoden c12ae02751 chore: improve code by renameing some function 1 year ago
sigoden f73f45ac9b chore: update deps 1 year ago
sigoden 6e389d794e chore: update tool description 1 year ago
sigoden 0874cecba8 chore: update readme 1 year ago
sigoden 281e15cbd1 chore: release v0.4.0 really 1 year ago
sigoden 056f38428c
fix: $AI_CONFIG_DIR points to the parent directory (#25) 1 year ago
sigoden ffa444399f chore: release v0.4.0 1 year ago
sigoden f29ca57446 chore: optimize cli help 1 year ago
sigoden cfb46ca0de
feat: add `--no-highlight` option (#24) 1 year ago
sigoden 7def9aef01
fix: combine pipe and cli args, disable highlight when pipe (#23) 1 year ago
sigoden c5a2f4603c chore: optimize code 1 year ago
sigoden 2152667fc6
refactor: split src/repl.rs to submodules (#22) 1 year ago
sigoden d40913d739
feat: add `.prompt` command (#21)
* feat: add `.prompt` command

* set temp role name
1 year ago
sigoden 4b1d6c16b3
feat: add `.set` command (#20)
* feat: add `.set` command

* Add config.role
1 year ago
sigoden 957ea431c2
refactor: rename config.no_highlight to highlight (#19) 1 year ago
sigoden aadffb17a3
feat: repl command replaces `.editor` with `.multiline` (#18)
You can use `.multiline` command to put multiline content

```
〉.multiline {
::: abc
::: cdf
::: }
```
It's much easier than `.editor`.
1 year ago
sigoden 625f0343cb chore: refactor error encapsulation 1 year ago
sigoden bec8787a57 chore: release v0.3.0 1 year ago
sigoden 2ac0155fa3
feat: accept pipe (#17)
`cat data | aichat` works
1 year ago
sigoden d876818df1
refactor: optimize clear screen (#16) 1 year ago
sigoden 181fbe8163
refactor: adjusted command name (#14)
* refactor: adjusted command name

.clear => .clear screen
.clear-history => .clear history
.clear-role => .clear role

* re-order commands in help text
1 year ago
sigoden 598c31c3d9
refactor: optimize role prompt (#13) 1 year ago
sigoden 822f0eed94
refactor: message record format (#12)
```
i am excited

--------
😃💥🎉
--------
```
1 year ago
sigoden 7a60a36367
feat: add `.info` command (#11) 1 year ago
sigoden a055d4bee6
feat: add `.copy` command (#10) 1 year ago