118 Commits

Author SHA1 Message Date
F4ria
394dc8df99 feat: chatgpt photo stream 2024-04-16 14:12:44 +08:00
F4ria
16735551c0 feat: support chatgpt 2024-04-16 14:12:44 +08:00
yihong0618
03b7c143a3 fix: comments
Signed-off-by: yihong0618 <zouzou0208@gmail.com>
2024-04-16 12:08:26 +08:00
yihong0618
091597069d fix: change yi base model
Signed-off-by: yihong0618 <zouzou0208@gmail.com>
2024-04-16 12:08:02 +08:00
yihong
f1515791ea
Merge pull request #29 from F4ria/url-reader
support Claude and Yi handlers to extract and enrich text with URLs
2024-04-16 11:43:13 +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
yihong
d75a0dd89e
Merge pull request #28 from F4ria/new-chat
feat: if the message starts with "new ", start a new chat directly
2024-04-15 18:42:13 +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
yihong
ec3b42d620
Merge pull request #27 from F4ria/reuse-bot-reply-markdown
Reuse bot_reply_markdown when streaming output
2024-04-12 09:14:14 +08:00
F4ria
851af94994 correct the parameter passed to bot_reply_first in yi_handler 2024-04-11 20:36:21 +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
yihong0618
e65ee0d6e9 fix: some bug
Signed-off-by: yihong0618 <zouzou0208@gmail.com>
2024-04-02 21:41:17 +08:00
yihong0618
d5d52b736b fix: typo for yi
Signed-off-by: yihong0618 <zouzou0208@gmail.com>
2024-04-02 21:26:46 +08:00
yihong
529a5de0ff
Merge pull request #26 from linuxyz/main
Make bot react more actively
2024-04-02 21:23:31 +08:00
yihong
1219d58478
Merge pull request #24 from jinwyp/dev2
fix: update setup for Claude
2024-04-02 21:22:30 +08:00
Y1.Zhao
14b075491e use black to format the code 2024-03-29 11:57:33 -04: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
f68f19e359 Update the MarketdownV2 message 2024-03-29 23:28:39 +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
yihong
943ab4001a
Merge pull request #25 from F4ria/correct-model-claude-handler
Correct the model in claude handler
2024-03-27 17:46:25 +08:00
F4ria
0d6ded25ff chore: correct the model name in claude_handler 2024-03-27 17:35:02 +08:00
JinWYP
36a88b9832 fix: update setup for Claude
Add Claude 3 and lingyiwanwu for setup.sh
2024-03-24 01:20:24 +08:00
yihong
6a13eb1758
Merge pull request #22 from zhangmooran/main
typo fixed: you -> your in line 41
2024-03-20 20:39:07 +08:00
ori
2604d4ef59 typo fixed:you->your in line 41 2024-03-20 20:08:27 +08:00
yihong
52ce93d42a
Merge pull request #21 from linuxyz/main
Split to multiple reply if text length is more than 4000 bytes
2024-03-20 18:54:29 +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
0c90e27d45 fix: add dependence
Signed-off-by: yihong0618 <zouzou0208@gmail.com>
2024-03-19 11:21:58 +08:00
yihong0618
9daab7fa14 fix
Signed-off-by: yihong0618 <zouzou0208@gmail.com>
2024-03-18 19:00:49 +08:00
yihong0618
b3a3862cbc fix: max token
Signed-off-by: yihong0618 <zouzou0208@gmail.com>
2024-03-18 18:55:59 +08:00
yihong0618
29ffafa369 fix 2024-03-18 18:49:02 +08:00
yihong0618
f417f8faa0 fix: poll
Signed-off-by: yihong0618 <zouzou0208@gmail.com>
2024-03-18 17:34:24 +08:00
yihong0618
9ae26d110e Merge branch 'main' of https://github.com/yihong0618/tg_bot_collections 2024-03-18 17:23:52 +08:00
yihong0618
15823907e4 fix 2024-03-18 17:23:38 +08:00
yihong
7035379358
Update README.md 2024-03-18 16:11:21 +08:00
yihong0618
93a3e001c8 fix: stream end
Signed-off-by: yihong0618 <zouzou0208@gmail.com>
2024-03-18 15:16:50 +08:00
yihong0618
2a420ba745 merge 2024-03-18 15:11:03 +08:00
yihong0618
68ab644e4a feat: claude opus
Signed-off-by: yihong0618 <zouzou0208@gmail.com>
2024-03-18 15:09:36 +08:00
yihong
2ebc7750ba
Merge pull request #20 from kenwoodjw/fix/docs 2024-03-17 19:13:10 +08:00
kenwoodjw
b501b7f98f update docs
Signed-off-by: kenwoodjw <blackxin55+@gmail.com>
2024-03-17 11:09:10 +00: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
9e5d5db767 feat: support yi
Signed-off-by: yihong0618 <zouzou0208@gmail.com>
2024-03-17 14:55:39 +08:00