fix: change gpt4 model and claude latest

Signed-off-by: yihong0618 <zouzou0208@gmail.com>
This commit is contained in:
yihong0618
2024-04-18 11:12:41 +08:00
parent 385df6c821
commit cd2185c7d6
2 changed files with 4 additions and 3 deletions

View File

@ -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: