Commit Graph

616 Commits

Author SHA1 Message Date
sigoden
6bb2ec05be
feat: add config.prelude to allow setting default role/session (#224) 2023-11-07 19:14:58 +08:00
sigoden
534733b77c
fix: unable to build on android using termux (#222) 2023-11-07 16:36:40 +08:00
sigoden
d40f104f66
feat: allow the use of an unlisted model (#219) 2023-11-07 11:54:56 +08:00
sigoden
9a8b302432
refactor: remove Model.client_index, match client by name (#218) 2023-11-07 10:56:28 +08:00
sigoden
87aec71e08
refactor: use &GlobalConfig to avoid clone (#217) 2023-11-07 10:21:17 +08:00
sigoden
81624f7267
refactor: rename Model.llm_name to name (#216) 2023-11-07 09:55:06 +08:00
sigoden
399ed3337f
refactor: improve error message for PaLM client (#213) 2023-11-06 19:37:45 +08:00
sigoden
5dabe723ed chore: release v0.9.0 2023-11-06 15:41:00 +08:00
sigoden
9bb259ee96
chore: add issue tempalte model_request.md (#212)
* chore: add issue tempalte model_request.md

* update label
2023-11-04 10:09:40 +08:00
sigoden
7627771e2d
feat: support Qianwen (#211) 2023-11-04 09:51:01 +08:00
sigoden
ec1f99fbf5
feat: support Ernie (#210) 2023-11-04 08:54:40 +08:00
sigoden
bba5028615
feat: support PaLM (#209) 2023-11-04 08:11:51 +08:00
sigoden
4380b4f20b
refactor: rename azure to azure_openai, improve register_client! (#208) 2023-11-04 06:28:40 +08:00
sigoden
887bf0a744
fix: fix rendering markdown in REPL (#207) 2023-11-03 18:36:17 +08:00
sigoden
811e605fbf
fix: don't ignore '\n\n' reply at begin (#206) 2023-11-03 13:41:03 +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
b34e40e25f
refactor: rename azure-openai to azure (#204) 2023-11-03 09:56:15 +08:00
sigoden
f9c40e52da
refactor: improve code quanity (#203)
- update field name of ModelInfo
- rename ModelInfo to Model
2023-11-03 06:52:57 +08:00
sigoden
dce6877f5d
refactor: optimize render (#202) 2023-11-02 21:38:01 +08:00
sigoden
16eba9baa1
fix: incorrect last line render in command mode (#201) 2023-11-02 16:47:36 +08:00
sigoden
eff69a482d
feat: add .set auto_copy (#200) 2023-11-02 16:08:11 +08:00
sigoden
713c92bdde chore: add one newline when caught repl error 2023-11-02 15:57:00 +08:00
sigoden
652b51509d
refactor: improve repl completer (#199) 2023-11-02 15:33:22 +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
5c7bfd92ff
refactor: set tokens count factors (#195) 2023-11-02 07:08:54 +08:00
sigoden
0238c8734e chore: spellcheck typos 2023-11-01 22:48:49 +08:00
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
2023-11-01 22:15:55 +08:00
sigoden
da3c541b68 refactor: add/use openai_compatible_client macro 2023-11-01 15:02:30 +08:00
sigoden
8d76fc77fb refactor: use reqwest-eventsource as sse client 2023-11-01 13:24:50 +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
bd3fc8e657 chore: refactor config description 2023-10-31 17:34:16 +08:00
sigoden
a137483b03
feat: improve client (#189) 2023-10-31 16:50:08 +08:00
sigoden
9b614600c6
fix: uncorrected render in command mode (#188) 2023-10-31 10:26:44 +08:00
sigoden
680670e834
feat: support custom theme (#187) 2023-10-31 09:06:41 +08:00
sigoden
84004fd576
feat: support OPENAI_API_BASE (#186) 2023-10-31 06:56:00 +08:00
sigoden
36380475d5
feat: support azure-openai (#166) 2023-10-31 06:36:52 +08:00
sigoden
86fd9d207e
fix: no last newline in reply text on windows os (#185) 2023-10-31 06:14:39 +08:00
sigoden
eb023e5759 chore: rename config.yaml to config.example.yaml 2023-10-30 19:57:45 +08:00
sigoden
54cfac427d chore: add demo config.yaml 2023-10-30 19:52:51 +08:00
sigoden
d2e06bf716 chore: update readme 2023-10-30 19:30:28 +08:00
sigoden
e86ad7dc16
feat: add .info role and .info session (#183) 2023-10-30 19:26:06 +08:00
sigoden
42339fac42 chore: add issue templates 2023-10-30 17:53:07 +08:00
sigoden
4909a20f2e
feat: force nowrap if no tty/terminal (#182) 2023-10-30 17:28:10 +08:00
sigoden
2203163938 chore: update readme and cli help 2023-10-30 17:10:52 +08:00
sigoden
5c0383f908
fix: dry run on role or session (#181) 2023-10-30 16:32:11 +08:00
sigoden
2168610dbd chore: spellcheck 2023-10-30 15:08:49 +08:00
sigoden
23e9fb5bbf
feat: deprecate .clear command (#180) 2023-10-30 14:17:15 +08:00
sigoden
ba3cc4f15d
feat: deprecate history file (#179) 2023-10-30 13:36:08 +08:00