update pay function

This commit is contained in:
2025-11-29 08:16:41 +08:00
parent 5526705254
commit 42fdb7d754
5 changed files with 34 additions and 34 deletions

View File

@@ -2759,7 +2759,7 @@ async def stream_role_response(
tool_choice="auto",
stream=False, # 工具调用不使用流式
temperature=0.7,
max_tokens=1000,
max_tokens=8192, # 增大 token 限制以避免输出被截断
)
assistant_message = response.choices[0].message
@@ -2819,7 +2819,7 @@ async def stream_role_response(
messages=messages,
stream=True,
temperature=0.7,
max_tokens=2000, # 增加 token 限制以避免输出被截断
max_tokens=16384, # 大幅增加 token 限制以避免输出被截断
)
full_content = ""