mirror of
https://github.com/cdryzun/tg_bot_collections.git
synced 2025-04-29 00:27:09 +08:00
fix: max token
Signed-off-by: yihong0618 <zouzou0208@gmail.com>
This commit is contained in:
parent
29ffafa369
commit
b3a3862cbc
@ -122,7 +122,7 @@ def claude_pro_handler(message: Message, bot: TeleBot) -> None:
|
||||
# tricky
|
||||
player_message.pop()
|
||||
r = client.messages.create(
|
||||
max_tokens=1024,
|
||||
max_tokens=4096,
|
||||
messages=player_message,
|
||||
model=ANTHROPIC_PRO_MODEL,
|
||||
stream=True,
|
||||
@ -134,7 +134,7 @@ def claude_pro_handler(message: Message, bot: TeleBot) -> None:
|
||||
for e in r:
|
||||
if e.type == "content_block_delta":
|
||||
s += e.delta.text
|
||||
if time.time() - start > 1.1:
|
||||
if time.time() - start > 1.0:
|
||||
start = time.time()
|
||||
if is_send:
|
||||
reply_id = bot.reply_to(
|
||||
|
Loading…
x
Reference in New Issue
Block a user