summaryrefslogtreecommitdiffstats
path: root/src/client.rs
AgeCommit message (Collapse)AuthorLines
2023-03-11feat: add support for NO_COLOR (#67)sigoden-8/+8
2023-03-11feat: support more env vars (#63)sigoden-1/+1
- AICHAT_CONFIG_DIR: sepecify the configuration directory - AICHAT_ROLES_FILE: set the `roles.yaml` file path - AICHAT_API_KEY: set the api key
2023-03-10chore: improve code quality, omit head 2 newlines in handler but in not clientsigoden-7/+0
2023-03-09feat: add remain tokens indicator and max tokens guard (#50)sigoden-6/+16
2023-03-09feat: support conversation (#48)sigoden-12/+3
2023-03-09refactor: replace Arc<Refcell<Config>> with Arc<Mutex<Config>> (#46)sigoden-8/+8
2023-03-08feat: add role-specific config (#42)sigoden-1/+1
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-24/+10
2023-03-08chore: no longer ignore any errorsigoden-4/+4
2023-03-07refactor: optimize ctrl+c/ctrl+d abort handling (#27)sigoden-8/+7
2023-03-06chore: improve code by renameing some functionsigoden-8/+11
2023-03-06chore: optimize codesigoden-9/+9
2023-03-05feat: add `.set` command (#20)sigoden-27/+31
* feat: add `.set` command * Add config.role
2023-03-05chore: refactor error encapsulationsigoden-5/+4
2023-03-05refactor: optimize role prompt (#13)sigoden-10/+22
2023-03-04feat: support highlight reply markdown (#3)sigoden-17/+24
* 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-0/+166