129 Commits

Author SHA1 Message Date
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
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
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
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
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
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
Alter-xyz
f2b73750a8 fix: update same message 2024-06-28 05:29:09 -04:00
Alter-xyz
5fb3fc49d0 fix: cohere long answer and garbled code 2024-06-28 05:28:44 -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
bfad22ffaf chore: black format 2024-06-23 02:43:02 -04:00
Alter-xyz
d104201b00 fix: Long message handle and decorate waiting message 2024-06-23 02:20:53 -04:00
Alter-xyz
3913c5e7a8 chore: update 2024-06-22 07:40:42 -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
bc3ecdb9f8 fix: add seed
Signed-off-by: yihong0618 <zouzou0208@gmail.com>
2024-05-30 19:25:53 +08:00
yihong0618
af5f1a9028 fix: lint 2024-05-29 19:22:19 +08:00
yihong0618
1300ae0494 fix: to 150
Signed-off-by: yihong0618 <zouzou0208@gmail.com>
2024-05-29 19:20:53 +08:00
yihong0618
aedeb4d2f2 feat: sd pro
Signed-off-by: yihong0618 <zouzou0208@gmail.com>
2024-05-20 21:21:30 +08:00
yihong0618
7938e636df ci: lint
Signed-off-by: yihong0618 <zouzou0208@gmail.com>
2024-05-18 13:30:53 +08:00