Commit Graph

59 Commits (main)

Author SHA1 Message Date
sigoden 822688a06a
refactor: adjust config methods order (#581) 1 week ago
sigoden 93ef6da629
refactor: global IS_STDOUT_TERMINAL (#571) 2 weeks 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)
2 weeks 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
1 month ago
sigoden 058299e500 refactor: refine detect code block 1 month ago
Tatsuya Kyushima ebad4bb888
chore: fix typos (#476) 2 months ago
sigoden 37a0cd08a9
refactor: rename some structs (#457) 2 months ago
sigoden 1cc89eff51
refactor: more async code (#427) 2 months ago
sigoden b3162a72b5
refactor: shell execution with spinner and select prompt (#425) 2 months ago
sigoden 8ab57ed74e
refactor: update description for cli options and config fields (#423) 2 months ago
sigoden a9a2caf4ae refactor: fluash raw stream 2 months ago
sigoden 16e9c647d4 refactor: adjust indicator text and render strategy 2 months ago
sigoden 2654542601 chore: fix typo 3 months ago
sigoden 2206593612
fix: incorrectly render text contains tabs (#384) 3 months ago
sigoden 7279e43141
fix: color on non-truecolor terminal (#363)
* fix: color on non-truecolor terminal

* make ansicolor lower contrast
3 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
7 months ago
sigoden 9b0fbe3506
fix: the last reply tokens was not highlighted (#243) 7 months ago
sigoden 01cf8acb81
refactor: improve code quanity (#238) 7 months ago
sigoden b40659613d
feat: add a spinner to indicate waiting for response (#236) 7 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
7 months ago
sigoden 819f50d9b1
fix: unexpected additional newline in REPL (#231) 8 months ago
sigoden 6bb2ec05be
feat: add `config.prelude` to allow setting default role/session (#224) 8 months ago
sigoden 887bf0a744
fix: fix rendering markdown in REPL (#207) 8 months ago
sigoden 811e605fbf
fix: don't ignore '\n\n' reply at begin (#206) 8 months ago
sigoden c20cd20d53
fix: wrap and tokenize algorithm (#205)
* fix: wrap and tokenize algorithm

* update tests

* remove unnecessary tokenize from tiktoken
8 months ago
sigoden dce6877f5d
refactor: optimize render (#202) 8 months ago
sigoden 16eba9baa1
fix: incorrect last line render in command mode (#201) 8 months ago
sigoden 713c92bdde chore: add one newline when caught repl error 8 months ago
sigoden 7c6841782d
refactor: improve code quanity (#197)
- move model_info.rs/message.rs to clients/
- rename SharedConfig to GlobalConfig
8 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
8 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
8 months ago
sigoden 8d76fc77fb refactor: use reqwest-eventsource as sse client 8 months ago
sigoden 64202758ec
chore: move split_line_* from repl/cmd.rs to utils/ (#190) 8 months ago
sigoden 9b614600c6
fix: uncorrected render in command mode (#188) 8 months ago
sigoden 680670e834
feat: support custom theme (#187) 8 months ago
sigoden 86fd9d207e
fix: no last newline in reply text on windows os (#185) 8 months ago
sigoden 2168610dbd chore: spellcheck 8 months ago
sigoden 44ea384ee5 chore: remove unnecessary clippy macros 8 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
8 months ago
sigoden 10b1d4b4de
fix: unexpcted duplicate lines in kitty (#167) 8 months ago
sigoden 7d8564cafb
feat: support multi bots and custom url (#150) 8 months ago
Anthony Rubick 97fc7de675
fix: minor code cleanup and pedantic lints (#134) 12 months ago
sigoden 4aab872ee1
feat: add support for NO_COLOR (#67) 1 year 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
1 year ago
sigoden 54e6edbf21 chore: recovery cursor in case of stream abort 1 year ago
sigoden 89eaf1b653 fix: csharp and php do not render correctly 1 year ago
sigoden e78b5f7c58 refactor: imports order and group 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 2539e24fe9
chore: improve code by getting prompt from config (#39) 1 year ago
sigoden ee81275431
fix: windows no stream output (#37) 1 year ago