Commit Graph

38 Commits (main)

Author SHA1 Message Date
sigoden 2174dc055f
refactor: change prompt for executing tool functions (#529)
* refactor: change prompt for executing tool functions

* add AICHAT_FUNCTION_AUTO_EXECUTE to auto confirm
2 weeks ago
sigoden d16cca23ac
refactor: shell detect/prompt (#519) 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
2 weeks ago
sigoden 5883a0685a refactor: improve tokenzie 3 weeks ago
sigoden a75aef459d
feat: remove tiktoken (#506) 3 weeks ago
Tatsuya Kyushima ebad4bb888
chore: fix typos (#476) 1 month ago
sigoden e7fa6c5a20 refactor: improve code quality 1 month ago
sigoden c752ba9b27
feat: `.model` repl completions show max tokens and price (#462) 1 month ago
sigoden 1cc89eff51
refactor: more async code (#427) 1 month ago
sigoden c5506fe393
refactor: tell user session compression (#426) 1 month ago
sigoden b3162a72b5
refactor: shell execution with spinner and select prompt (#425) 1 month ago
sigoden 8421f23b45
feat: allow overriding execute/code role (#331) 3 months ago
sigoden 3c16aff591
feat: add `-c/--code` to generate only code (#327) 3 months ago
sigoden bc3cbce2f4
refactor: enhanced shell support (#326) 3 months ago
sigoden 21d1be5bed
refactor: improve prompt error handling (#319) 3 months ago
sigoden 7638412128
feat: support `-e/--execute` to execute shell command (#318) 3 months ago
sigoden 1c9ca1b002
feat: custom REPL prompt (#283) 5 months ago
sigoden 6286251d32
feat: support gemini (#273) 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
6 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 534733b77c
fix: unable to build on android using termux (#222) 7 months ago
sigoden c20cd20d53
fix: wrap and tokenize algorithm (#205)
* fix: wrap and tokenize algorithm

* update tests

* remove unnecessary tokenize from tiktoken
7 months ago
sigoden dce6877f5d
refactor: optimize render (#202) 7 months ago
sigoden 7c6841782d
refactor: improve code quanity (#197)
- move model_info.rs/message.rs to clients/
- rename SharedConfig to GlobalConfig
7 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
7 months ago
sigoden 7f2210dbca
refactor: clients/* and config.rs (#193)
- add register_clients macro to make it easier to add a new client
- no create_client_config, just add const PROMPTS
- move ModelInfo from clients/ to config/
- model's max_tokens are optional
- improve code quanity on config/mod.rs
- add/use macro config_get_fn
7 months ago
sigoden 64202758ec
chore: move split_line_* from repl/cmd.rs to utils/ (#190) 7 months ago
sigoden 5c0383f908
fix: dry run on role or session (#181) 7 months ago
sigoden f2c9f00bda
fix: detect light theme only by env var (#177) 7 months ago
sigoden 44ea384ee5 chore: remove unnecessary clippy macros 7 months ago
sigoden 1ced15a209
feat: autodetect light theme on unix-like os (#168) 7 months ago
sigoden 1575d44172
fix: .copy don't works on some linux distro (#161) 7 months ago
sigoden 47818159a7
refactor: streaming input text in dry-run mode (#154) 7 months ago
sigoden 7d8564cafb
feat: support multi bots and custom url (#150) 7 months ago
Anthony Rubick 97fc7de675
fix: minor code cleanup and pedantic lints (#134) 11 months ago
sigoden 00ce157571
feat: add `.copy` command (#119) 1 year ago
sigoden f257931b0b
fix: mask api_key/organization_id in info text (#93) 1 year ago
sigoden 05d20f207f
feat: add remain tokens indicator and max tokens guard (#50) 1 year ago