sigoden
f4a48e646b
refactor: render error with prefix `Error: ` ( #844 )
3 weeks ago
sigoden
b16913fec3
fix: render stream failed due to read cursor position timeout ( #835 )
3 weeks ago
sigoden
cc74be5d21
refactor: several improvements ( #765 )
2 months ago
sigoden
5985551aba
feat: rag load websites ( #655 )
3 months ago
sigoden
822688a06a
refactor: adjust config methods order ( #581 )
4 months ago
sigoden
93ef6da629
refactor: global IS_STDOUT_TERMINAL ( #571 )
4 months ago
sigoden
1ec6abfaee
feat: support RAG ( #560 )
...
* feat: support RAG
* support more embeddings models and implement concurrent embedding api
* show the progress of addings paths
* ignore embedding context when saving message
* embedding model max_chunk_size => default_chunk_size
* support pdf and pandoc formats (docx, epub, ipynb)
4 months ago
sigoden
b4a40e3fed
feat: support function calling ( #514 )
...
* feat: support function calling
* fix on Windows OS
* implement multi-steps function calling
* fix on Windows OS
* add error for client not support function calling
* refactor message data structure and make claude client supporting function calling
* support reuse previous call results
* improve error handling for function calling
* use prefix `may_` as indicator for `execute` type fucntions
4 months ago
sigoden
058299e500
refactor: refine detect code block
5 months ago
Tatsuya Kyushima
ebad4bb888
chore: fix typos ( #476 )
5 months ago
sigoden
37a0cd08a9
refactor: rename some structs ( #457 )
5 months ago
sigoden
1cc89eff51
refactor: more async code ( #427 )
5 months ago
sigoden
b3162a72b5
refactor: shell execution with spinner and select prompt ( #425 )
5 months ago
sigoden
8ab57ed74e
refactor: update description for cli options and config fields ( #423 )
5 months ago
sigoden
a9a2caf4ae
refactor: fluash raw stream
5 months ago
sigoden
16e9c647d4
refactor: adjust indicator text and render strategy
6 months ago
sigoden
2654542601
chore: fix typo
6 months ago
sigoden
2206593612
fix: incorrectly render text contains tabs ( #384 )
6 months ago
sigoden
7279e43141
fix: color on non-truecolor terminal ( #363 )
...
* fix: color on non-truecolor terminal
* make ansicolor lower contrast
6 months ago
sigoden
35c75506e2
feat: support vision ( #249 )
...
* feat: support vision
* clippy
* implement vision
* resolve data url to local file
* add model openai:gpt-4-vision-preview
* use newline to concate embeded text files
* set max_tokens for gpt-4-vision-preview
10 months ago
sigoden
9b0fbe3506
fix: the last reply tokens was not highlighted ( #243 )
11 months ago
sigoden
01cf8acb81
refactor: improve code quanity ( #238 )
11 months ago
sigoden
b40659613d
feat: add a spinner to indicate waiting for response ( #236 )
11 months ago
sigoden
eb30d90391
refactor: improve render ( #235 )
...
* refactor: redesign render
- if stdout is not terminal, just write reply text to stdout
- rename repl_render_stream to markdown_stream
- deprecate cmd_render_stream
- use raw_stream to just print streaming reply text
* optimize rendering error
* optimize render_stream
11 months ago
sigoden
819f50d9b1
fix: unexpected additional newline in REPL ( #231 )
11 months ago
sigoden
6bb2ec05be
feat: add `config.prelude` to allow setting default role/session ( #224 )
11 months ago
sigoden
887bf0a744
fix: fix rendering markdown in REPL ( #207 )
11 months ago
sigoden
811e605fbf
fix: don't ignore '\n\n' reply at begin ( #206 )
11 months ago
sigoden
c20cd20d53
fix: wrap and tokenize algorithm ( #205 )
...
* fix: wrap and tokenize algorithm
* update tests
* remove unnecessary tokenize from tiktoken
11 months ago
sigoden
dce6877f5d
refactor: optimize render ( #202 )
11 months ago
sigoden
16eba9baa1
fix: incorrect last line render in command mode ( #201 )
11 months ago
sigoden
713c92bdde
chore: add one newline when caught repl error
11 months ago
sigoden
7c6841782d
refactor: improve code quanity ( #197 )
...
- move model_info.rs/message.rs to clients/
- rename SharedConfig to GlobalConfig
11 months ago
sigoden
444f4ebe9d
refactor: improve code quanity ( #196 )
...
- rewrite Repl, remove ReplHandler
- move ReplyStreamHandler to repl/ and rename it to ReplyHandler
- deprecate utils::print_now
- refactor session info
11 months ago
sigoden
f6da06dad9
refactor: improve code quanity ( #194 )
...
- extends ModelInfo for tokens calculating
- refactor config/session.rs, improve export, render, getter/setter
- modify main.rs, allow --model override session.model
11 months ago
sigoden
8d76fc77fb
refactor: use reqwest-eventsource as sse client
11 months ago
sigoden
64202758ec
chore: move split_line_* from repl/cmd.rs to utils/ ( #190 )
11 months ago
sigoden
9b614600c6
fix: uncorrected render in command mode ( #188 )
11 months ago
sigoden
680670e834
feat: support custom theme ( #187 )
11 months ago
sigoden
86fd9d207e
fix: no last newline in reply text on windows os ( #185 )
11 months ago
sigoden
2168610dbd
chore: spellcheck
11 months ago
sigoden
44ea384ee5
chore: remove unnecessary clippy macros
11 months ago
sigoden
b276dfedd2
feat: support textwrap ( #171 )
...
* feat: support textwrap
* improve cmd_render_stream
* done cmd_render_stream
* add `-w` alias to `--wrap`
* done repl_render_stream
* add `config.wrap_code`
* remove cached config.wrap_width
* fix unxpected duplicate lines on kitty
* refactor markdown render
* improve render
* fix test
11 months ago
sigoden
10b1d4b4de
fix: unexpcted duplicate lines in kitty ( #167 )
11 months ago
sigoden
7d8564cafb
feat: support multi bots and custom url ( #150 )
11 months ago
Anthony Rubick
97fc7de675
fix: minor code cleanup and pedantic lints ( #134 )
1 year ago
sigoden
4aab872ee1
feat: add support for NO_COLOR ( #67 )
2 years ago
sigoden
cfb6ce6958
feat: support light theme ( #65 )
...
There are two ways to enable the light theme:
- add `light_theme: true` to config.yaml
- use `AICHAT_LIGHT_THEME=true` env var
2 years ago
sigoden
54e6edbf21
chore: recovery cursor in case of stream abort
2 years ago
sigoden
89eaf1b653
fix: csharp and php do not render correctly
2 years ago