From 0fa1ae215ac1434591968818f8f75ad5b35d52ec Mon Sep 17 00:00:00 2001 From: sigoden Date: Sat, 4 Mar 2023 09:02:57 +0800 Subject: feat: support highlight reply markdown (#3) * 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' --- README.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index 07a3a4b..35826d1 100644 --- a/README.md +++ b/README.md @@ -22,11 +22,12 @@ Download from [Github Releases](https://github.com/sigoden/aichat/releases), unz ## Features - Compared to the browser, the terminal starts faster and needs less resources. -- Support command mode and interactive mode. -- Support proxy. +- Support directive and interactive modes +- Support markdown highlighting. - Predefine prompts for role playing. - History query/completion. -- Persist chat messages +- Persist chat messages. +- Support proxy. - Written in rust, single executable file, cross-platform. ## Config @@ -47,6 +48,7 @@ After setting, it will automatically create the configuration file. Of course, y api_key: "" # Request via https://platform.openai.com/account/api-keys temperature: 1.0 # optional, see https://platform.openai.com/docs/api-reference/chat/create#chat/create-temperature save: true # optional, If set to true, aichat will save chat messages to message.md +highlight: true # optional, Whether to highlight reply message. proxy: "socks5://127.0.0.1:1080" # optional, set proxy server. e.g. http://127.0.0.1:8080 or socks5://127.0.0.1:1080 ``` -- cgit v1.2.3