Commit Graph

33 Commits

Author SHA1 Message Date
Tatsuya Kyushima
ebad4bb888
chore: fix typos (#476) 2024-05-02 17:17:50 +08:00
sigoden
e7fa6c5a20 refactor: improve code quality 2024-04-30 00:25:35 +00:00
sigoden
c752ba9b27
feat: .model repl completions show max tokens and price (#462) 2024-04-29 15:34:24 +08:00
sigoden
1cc89eff51
refactor: more async code (#427) 2024-04-23 14:32:06 +08:00
sigoden
c5506fe393
refactor: tell user session compression (#426) 2024-04-21 07:57:02 +08:00
sigoden
b3162a72b5
refactor: shell execution with spinner and select prompt (#425) 2024-04-21 06:52:22 +08:00
sigoden
8421f23b45
feat: allow overriding execute/code role (#331) 2024-03-03 09:57:50 +08:00
sigoden
3c16aff591
feat: add -c/--code to generate only code (#327) 2024-03-02 21:11:28 +08:00
sigoden
bc3cbce2f4
refactor: enhanced shell support (#326) 2024-03-02 15:44:08 +08:00
sigoden
21d1be5bed
refactor: improve prompt error handling (#319) 2024-02-24 19:13:48 +08:00
sigoden
7638412128
feat: support -e/--execute to execute shell command (#318) 2024-02-23 13:15:18 +08:00
sigoden
1c9ca1b002
feat: custom REPL prompt (#283) 2023-12-24 16:04:18 +08:00
sigoden
6286251d32
feat: support gemini (#273) 2023-12-19 20:37:53 +08:00
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
2023-11-27 14:04:50 +08:00
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
2023-11-08 18:26:38 +08:00
sigoden
534733b77c
fix: unable to build on android using termux (#222) 2023-11-07 16:36:40 +08:00
sigoden
c20cd20d53
fix: wrap and tokenize algorithm (#205)
* fix: wrap and tokenize algorithm

* update tests

* remove unnecessary tokenize from tiktoken
2023-11-03 12:30:40 +08:00
sigoden
dce6877f5d
refactor: optimize render (#202) 2023-11-02 21:38:01 +08:00
sigoden
7c6841782d
refactor: improve code quanity (#197)
- move model_info.rs/message.rs to clients/
- rename SharedConfig to GlobalConfig
2023-11-02 10:45:11 +08:00
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
2023-11-02 09:53:54 +08:00
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
2023-11-01 10:28:54 +08:00
sigoden
64202758ec
chore: move split_line_* from repl/cmd.rs to utils/ (#190) 2023-10-31 18:34:38 +08:00
sigoden
5c0383f908
fix: dry run on role or session (#181) 2023-10-30 16:32:11 +08:00
sigoden
f2c9f00bda
fix: detect light theme only by env var (#177) 2023-10-30 11:45:07 +08:00
sigoden
44ea384ee5 chore: remove unnecessary clippy macros 2023-10-30 10:22:00 +08:00
sigoden
1ced15a209
feat: autodetect light theme on unix-like os (#168) 2023-10-29 17:22:23 +08:00
sigoden
1575d44172
fix: .copy don't works on some linux distro (#161) 2023-10-27 23:45:26 +08:00
sigoden
47818159a7
refactor: streaming input text in dry-run mode (#154) 2023-10-27 09:33:34 +08:00
sigoden
7d8564cafb
feat: support multi bots and custom url (#150) 2023-10-26 16:42:54 +08:00
Anthony Rubick
97fc7de675
fix: minor code cleanup and pedantic lints (#134) 2023-07-10 11:07:09 +08:00
sigoden
00ce157571
feat: add .copy command (#119) 2023-05-04 22:42:50 +08:00
sigoden
f257931b0b
fix: mask api_key/organization_id in info text (#93) 2023-03-22 21:02:09 +08:00
sigoden
05d20f207f
feat: add remain tokens indicator and max tokens guard (#50) 2023-03-09 15:30:39 +08:00