30 Commits

Author SHA1 Message Date
yihong0618
870a1db1fc fix: gpt token 2024-05-18 10:05:36 +08:00
F4ria
f9e740300e use 'del' to remove the player's history for gemini 2024-04-23 11:45:19 +08:00
yihong0618
385df6c821 feat: sd3 api
Signed-off-by: yihong0618 <zouzou0208@gmail.com>
2024-04-18 11:01:37 +08:00
F4ria
f804005f5e support Claude and Yi handlers to extract and enrich text with URLs 2024-04-15 23:49:56 +08:00
yihong0618
bf885ef471 feat: support url read
Signed-off-by: yihong0618 <zouzou0208@gmail.com>
2024-04-15 20:58:51 +08:00
F4ria
53b66499ee feat: if the message starts with "new ", clear the player's history and start a new chat 2024-04-15 18:23:15 +08:00
F4ria
82972d1cbd support streaming response for claude_photo_handler/gemini_photo_handler 2024-04-11 17:11:22 +08:00
F4ria
fdc9d00eb0 add a new optional argument split_text to the bot_reply_markdown function.
- The default is True, it is set to False when streaming output.
2024-04-11 16:47:16 +08:00
yihong0618
ad90fadc74 fix: error name typo
Signed-off-by: yihong0618 <zouzou0208@gmail.com>
2024-04-10 19:33:52 +08:00
yihong0618
c87d7f99ea feat: support gemini pro
Signed-off-by: yihong0618 <zouzou0208@gmail.com>
2024-04-10 09:07:28 +08:00
Yi Zhao
4a40cf7695 hack the Gemini markdown formst 2 2024-03-29 23:42:54 +08:00
Yi Zhao
da079d795d hack the Gemini markdown formst 2024-03-29 23:36:01 +08:00
Yi Zhao
ffccd1d116 Update the full-angle character 2024-03-29 23:33:41 +08:00
Yi Zhao
790bd55517 Correct typo 2024-03-29 23:24:44 +08:00
Yi Zhao
35d6368779 enlarge context to 8K 2024-03-29 23:09:28 +08:00
Yi Zhao
98909312f2 Update the MarkdownV2 message 2024-03-29 23:01:34 +08:00
Yi Zhao
27444d6fa1 reply immediately and make users feel bots little resposible 2024-03-29 22:45:58 +08:00
Y1.Zhao
13090b6a42 Split to multiple reply if text length is more than 4000 bytes 2024-03-19 04:20:22 -04:00
yihong0618
68ab644e4a feat: claude opus
Signed-off-by: yihong0618 <zouzou0208@gmail.com>
2024-03-18 15:09:36 +08:00
yihong0618
2952b81521 fix: make gemini safe to None
Signed-off-by: yihong0618 <zouzou0208@gmail.com>
2024-03-17 18:30:55 +08:00
yihong0618
2e52fa58cb fix: no reply message
Signed-off-by: yihong0618 <zouzou0208@gmail.com>
2024-03-16 15:42:22 +08:00
yihong0618
e5838d7876 fix: test 2024-03-14 21:02:25 +08:00
yihong0618
6f6771e1e8 fix: file not close
Signed-off-by: yihong0618 <zouzou0208@gmail.com>
2024-03-05 17:04:24 +08:00
F4ria
3fa51848be fix: replace exception raise with user-friendly message 2023-12-28 11:21:31 +08:00
F4ria
0ddc3af8bf feat: extracting gemini's reply text from the exception if available. 2023-12-25 15:32:56 +08:00
yihong0618
e56b35cfd1 fix: markdown format 2023-12-17 22:56:54 +08:00
Frost Ming
f37dd9371c
fix: delete reply after done
Signed-off-by: Frost Ming <me@frostming.com>
2023-12-15 15:54:28 +08:00
yihong0618
828530cc10 fix: change default temperature
Signed-off-by: yihong0618 <zouzou0208@gmail.com>
2023-12-15 15:09:05 +08:00
yihong0618
7022776103 fix: tiny bug 2023-12-15 14:19:34 +08:00
Frost Ming
7a46a22262
feat: Modularize handlers
Signed-off-by: Frost Ming <me@frostming.com>
2023-12-15 14:00:18 +08:00