'commit'
This commit is contained in:
@@ -45,7 +45,7 @@ async def get_llm_response(query_text: str, stream: bool = True, system_prompt:
|
||||
request_params['temperature'] = temperature
|
||||
|
||||
# 创建请求
|
||||
completion = await client.chat.completions.create(**request_params)
|
||||
completion = await asyncio.wait_for(client.chat.completions.create(**request_params), timeout=60.0)
|
||||
|
||||
if stream:
|
||||
# 流式输出模式,返回生成器
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user