mirror of
https://github.com/cdryzun/tg_bot_collections.git
synced 2025-07-06 06:47:14 +08:00
fix: change gpt4 model and claude latest
Signed-off-by: yihong0618 <zouzou0208@gmail.com>
This commit is contained in:
@ -117,8 +117,9 @@ def claude_pro_handler(message: Message, bot: TeleBot) -> None:
|
||||
reply_id = bot_reply_first(message, who, bot)
|
||||
|
||||
player_message.append({"role": "user", "content": m})
|
||||
# keep the last 5, every has two ask and answer.
|
||||
if len(player_message) > 10:
|
||||
# keep the last 2, every has two ask and answer.
|
||||
# its too expensive
|
||||
if len(player_message) > 4:
|
||||
player_message = player_message[2:]
|
||||
|
||||
try:
|
||||
|
Reference in New Issue
Block a user