213 Commits

Author SHA1 Message Date
yihong0618
e91862a548 fix: chatgpt fix
Signed-off-by: yihong0618 <zouzou0208@gmail.com>
2025-03-31 19:49:52 +08:00
yihong0618
3b65e61377 fix: update gemini model-s 2024-12-13 19:30:00 +08:00
yihong
5cb3df00b8
Merge pull request #51 from alterxyz/main
Update dify.py
2024-09-13 19:00:40 +08:00
Alter-xyz
309d702c08 Update dify.py
refactor module, add stream message support, implement dynamic design without preset API

- Refactored Dify module architecture
- Added support for streaming messages
- Implemented new dynamic design removing need for preset API
2024-09-13 06:49:59 -04:00
yihong0618
a1006f8dff fix: drop code excute
Signed-off-by: yihong0618 <zouzou0208@gmail.com>
2024-08-02 14:36:40 +08:00
yihong0618
d86492e3bc fix: lint
Signed-off-by: yihong0618 <zouzou0208@gmail.com>
2024-08-02 14:23:59 +08:00
yihong0618
9ca9e1b602 fix: timeout 2024-08-02 14:14:40 +08:00
yihong0618
34571633a2 feat: gemini new model
Signed-off-by: yihong0618 <zouzou0208@gmail.com>
2024-08-02 14:13:24 +08:00
yihong
7ecafca139
Merge pull request #50 from alterxyz/main
feat: FxTwitter handler
2024-07-31 11:36:17 +08:00
Alter-xyz
27956b5ebe Update tweet.py 2024-07-24 18:39:41 -04:00
Alter-xyz
5ef3c02f6e feat: FxTwitter handler
- reply with modified tweet link
- edit tweet link only message
    - by bot repeat modified link
    - then delete original user message
2024-07-24 18:27:17 -04:00
yihong0618
5d52e3d8d0 Merge branch 'main' of https://github.com/yihong0618/tg_bot_collections 2024-07-24 09:39:16 +08:00
yihong0618
e09ce59079 fix: use 405b for llama
Signed-off-by: yihong0618 <zouzou0208@gmail.com>
2024-07-24 09:38:21 +08:00
yihong
6e8740754c
Merge pull request #49 from alterxyz/main
fix: get_page may return none
2024-07-19 10:33:23 +08:00
Alter-xyz
9e5de5c89f fix: get_page may return none 2024-07-18 00:40:52 -04:00
yihong0618
0970dedb91 doc: kling
Signed-off-by: yihong0618 <zouzou0208@gmail.com>
2024-07-17 19:27:46 +08:00
yihong0618
b9b1a8f93d feat: kling
Signed-off-by: yihong0618 <zouzou0208@gmail.com>
2024-07-17 19:26:12 +08:00
yihong
481f9d56bf
Merge pull request #48 from alterxyz/main
chore: ph/appends run first within threadpool
2024-07-15 22:36:17 +08:00
Alter-xyz
35c673ff2e Update useful.py 2024-07-15 06:50:22 -04:00
Alter-xyz
b1e52c7e18 chore: ph/appends run first within threadpool
- Display and submit backgrounded APPENDS first

- Then stream answers run
2024-07-15 06:37:35 -04:00
yihong
5f56c2f66e
Merge pull request #46 from alterxyz/main
chore: UX
2024-07-15 12:11:41 +08:00
yihong
059db58c5c
Merge pull request #45 from F4ria/answer-reply
Enhance answer_it_handler to process image and replied messages
2024-07-15 12:11:31 +08:00
Alter-xyz
65dc5e974e chore: UX
Gemini stream only, rest append background to telegraph, with update on answer_it message
2024-07-13 09:44:55 -04:00
F4ria
59a169857c fix: 'NoneType' object has no attribute 'startswith' 2024-07-11 18:13:16 +08:00
F4ria
f9b6ffac81 fix: Avoid repeating answers
- check `*_USE` flags before using `*_COMPLETE` for CHATGPT, CLAUDE, COHERE, and LLAMA
2024-07-11 11:51:14 +08:00
F4ria
d0494a9372 fix: remove command prefix from messages 2024-07-11 11:51:10 +08:00
F4ria
b66c9ac136 fix: update image_to_data_uri to use dynamic content type 2024-07-10 20:37:45 +08:00
F4ria
474e80db53 answer_it_handler to process image message. support gemini thread 2024-07-10 20:37:45 +08:00
F4ria
5ea841bdba answer_it_handler to process image message. support claude 2024-07-10 20:37:45 +08:00
F4ria
5d8e0c9221 Enhance answer_it_handler to process image message. support gpt and gemini 2024-07-10 20:37:45 +08:00
F4ria
f524af9b36 add image upload function to TelegraphAPI 2024-07-10 20:37:45 +08:00
F4ria
8f2ae93ea4 Handle replied message in answer_it_handler 2024-07-10 20:37:45 +08:00
yihong0618
4d16429885 fix 2024-07-10 19:17:15 +08:00
yihong0618
1909e95cd6 fix: wrong answer
Signed-off-by: yihong0618 <zouzou0208@gmail.com>
2024-07-10 19:16:25 +08:00
yihong
23ad429cd2
Merge pull request #44 from F4ria/load_priority 2024-07-10 07:28:24 +08:00
F4ria
3f1ca37e53 Add priority attribute to handler, sort and load handler by priority.
- Set a low load priority in handlers/useful.py to ensure it loads last. (ensure
  'latest_handle_messages' registered last to prevent other commands from failing.)
2024-07-09 23:38:40 +08:00
yihong0618
89b619da3b fix: jpgs
Signed-off-by: yihong0618 <zouzou0208@gmail.com>
2024-07-05 14:38:06 +08:00
yihong
7c9ffb2287
Merge pull request #43 from alterxyz/main
Fix answer_it gemini convo
2024-07-05 14:33:38 +08:00
Alter-xyz
6fede9e506 feat: answer_it UX
- feat: skip if message too long (most time from link process)
- feat: modifiable ${Hint} for guide user use "Try /answer_it" in bot message
- feat: return something else if telegra.ph create page fail
- chore: prompt for answer_it

formatting

prompt
2024-07-04 09:21:10 -04:00
Alter-xyz
97580a8f60 fix gemini convo
- gemini stream direct, other still thread run.
- gemini thread run disabled.
- formatting (black)
2024-07-04 00:20:33 -04:00
yihong0618
1e0eca40f6 feat: fake bot
Signed-off-by: yihong0618 <zouzou0208@gmail.com>
2024-07-03 21:19:08 +08:00
yihong
f979888afc
Merge pull request #40 from alterxyz/main
Fix answer_it
2024-07-03 20:36:20 +08:00
yihong
7b4ab94a3e
Merge pull request #41 from xingty/fix-telegraph
Fixed issue with <a> tags not working in Telegraph.
2024-07-03 20:36:02 +08:00
bigbyto
8a61b9d40b fix: telegraph 2024-07-03 13:30:24 +08:00
Alter-xyz
8b55a1442c Fix answer_it
Fix stream message overtime
Fix gemini history.clear while stream
Feat: Complete mode (non stream)
Chore: preset some settings
2024-07-02 08:27:21 -04:00
yihong
4d0b9ee799
Merge pull request #39 from alterxyz/main
Answer_it refine
2024-07-02 14:41:49 +08:00
Alter-xyz
15404d91a3 feat: skip update duplicate message 2024-06-29 08:58:49 -04:00
Alter-xyz
4755a4cedd feat: Web Preview (Instant View) switch for cleaner look 2024-06-29 03:10:08 -04:00
Alter-xyz
bde2fd061b feat: answer_it screenless llm to ph page 2024-06-29 01:49:14 -04:00
Alter-xyz
d1d84aa0e3 refactor
- refactor: Modulated
- chore: Switch on the top as "Customization"
- chore: Prompt for tasks
- feat: Support more LLM as optional
- feat: Summarization for final answer
- feat: Asynchronous/Thread for faster speed
2024-06-28 11:46:06 -04:00