26 Commits

Author SHA1 Message Date
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
8f2ae93ea4 Handle replied message in answer_it_handler 2024-07-10 20:37:45 +08:00
yihong0618
1909e95cd6 fix: wrong answer
Signed-off-by: yihong0618 <zouzou0208@gmail.com>
2024-07-10 19:16:25 +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
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
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
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
yihong0618
4cf8c8f8d9 fix: threadthings
Signed-off-by: yihong0618 <zouzou0208@gmail.com>
2024-06-28 16:13:17 +08:00
yihong0618
6be33a9bc0 fix: better answer it
Signed-off-by: yihong0618 <zouzou0208@gmail.com>
2024-06-28 15:41:16 +08:00
yihong0618
907b9d4fde fix: add to delete
Signed-off-by: yihong0618 <zouzou0208@gmail.com>
2024-06-25 19:22:09 +08:00
Alter-xyz
9c8638279e feat: Default skip telegraph account
It will print out the token in local terminal by default.

If Store_Token = True, it will store token in "token_key.json"

View my lite ver and try at <https://github.com/alterxyz/tg_bot_collections_lite>
2024-06-24 21:26:44 -04:00
Alter-xyz
e2ffd7fa57 feat: create telegraph account
- feat: create and store the telegraph token locally
 - check and use if there exist token in json
- feat: auto generate telegraph token for cohere.py and answer_it
- fix: optional delete other answer_it message and only leave a telegraph link messsage for clean view

Co-Authored-By: yihong <zouzou0208@gmail.com>
2024-06-23 09:14:19 -04:00
Alter-xyz
dbed5f08b3 feat: Cohere telegra.ph
- Enable Cohere web search
- Output the entire LLM message with its source link on Telegraph
2024-06-22 07:29:00 -04:00
yihong0618
90fd74c403 fix: command
Signed-off-by: yihong0618 <zouzou0208@gmail.com>
2024-06-20 15:18:29 +08:00
yihong0618
a0220fa8aa fix: message text
Signed-off-by: yihong0618 <zouzou0208@gmail.com>
2024-06-18 21:18:03 +08:00
yihong0618
f7faaf972d fix: it
Signed-off-by: yihong0618 <zouzou0208@gmail.com>
2024-06-18 20:21:15 +08:00
yihong0618
30ffe91802 fix: ignore lastest message
Signed-off-by: yihong0618 <zouzou0208@gmail.com>
2024-06-15 15:58:06 +08:00
yihong0618
bd202851e0 fix: without command
Signed-off-by: yihong0618 <zouzou0208@gmail.com>
2024-06-15 15:55:16 +08:00
yihong0618
b9ed871d58 feat: answer it!
Signed-off-by: yihong0618 <zouzou0208@gmail.com>
2024-06-15 11:29:31 +08:00
yihong0618
785b75e994 feat: use expire dict
Signed-off-by: yihong0618 <zouzou0208@gmail.com>
2024-06-14 18:55:20 +08:00
yihong0618
77fefcb4b5 feat: yi large and md
Signed-off-by: yihong0618 <zouzou0208@gmail.com>
2024-05-13 14:03:04 +08:00