Commit Graph

30 Commits

Author SHA1 Message Date
lanvent
618c94edb8 formatting: run precommit on all files 2023-04-22 12:01:29 +08:00
lanvent
abcbb34b1c fix(chat_gpt_bot.py, open_ai_bot.py): increase retry time to 20 seconds when encountering RateLimitError 2023-04-18 14:18:22 +08:00
lanvent
8f72e8c3e6 formatting code 2023-04-17 01:01:02 +08:00
lanvent
2dfbc840b3 chore: save model args as a dict 2023-04-13 20:44:08 +08:00
lanvent
2989249e4b chore: add calc_tokens method on session 2023-04-13 20:06:33 +08:00
lanvent
947e892916 feat: retry when timeout 2023-03-29 15:12:27 +08:00
lanvent
fd64f88a7e fix: import openai.error 2023-03-28 22:18:29 +08:00
lanvent
ff3d143185 plugins: support openaibot 2023-03-26 23:33:29 +08:00
lanvent
ea95ab9062 refactor: decouple openai session 2023-03-26 23:09:05 +08:00
lanvent
38c901a1c5 fix: init image api for bot 2023-03-26 21:49:07 +08:00
lanvent
721b36c7f7 refactor: reuse openai image interface 2023-03-26 20:08:04 +08:00
zhayujie
42f3f4403c Merge branch 'plugins' into dev 2023-03-24 01:40:13 +08:00
zhayujie
3c04325aae feat: add config for model selection #471 2023-03-15 23:27:51 +08:00
zhayujie
224ee6bd89 fix: openai_base_url load 2023-03-15 12:57:34 +08:00
B1gM8c
2c8da59b47 支持自定义openai_api_base
支持自定义openai_api_base

解决国内API被墙的问题,可以自定义使用自己的中转API
2023-03-15 00:14:39 +08:00
lanvent
dce9c4dccb compatible with openai bot 2023-03-13 19:58:35 +08:00
zhayujie
8107165792 fix: variable name compatibility modification 2023-03-10 09:23:58 +08:00
zwssunny
b81d947dbb 增加#清除所有人记忆指令 2023-02-27 22:33:31 +08:00
zhayujie
24f00a28bd fix: replies were cut off #152 2023-02-11 22:54:09 +08:00
ubuntu
c7d1e77ae6 fix: handle RateLimitError #50 #51 #54 2023-02-07 01:28:01 +08:00
zhayujie
d69fd2b982 fix: session exception due to the openai limit #50 2023-02-06 17:03:24 +08:00
zhayujie
2fa3f77ab8 fix: prompt build bug 2023-02-06 00:14:12 +08:00
zhayujie
152724f05d fix: reduce session max words 2023-02-05 21:45:18 +08:00
zhayujie
7425d9075a feat: support multi-conversation memory #28 2023-02-05 18:40:37 +08:00
zhayujie
ffec4df563 feat: auto append a question mark when there is no ending punctuation 2023-02-03 01:16:34 +08:00
zhayujie
4c42136d0c feat: adjust some configs to be optional 2023-02-03 00:59:14 +08:00
zhayujie
17b6c63fb9 fix: image create prefix match bug 2022-12-19 03:06:48 +08:00
zhayujie
bf50694658 feat: picture auto-generate 2022-12-19 01:25:34 +08:00
zhayujie
06065853a9 fix: encoding bug 2022-12-18 14:03:34 +08:00
zhayujie
e5e0979bfa feat: bring in openai completion api 2022-12-17 23:08:08 +08:00