Skip to content

Commit

Permalink
🐛 延长timeout时间
Browse files Browse the repository at this point in the history
  • Loading branch information
ChenXu233 committed Nov 8, 2024
1 parent e4750fe commit 8eb12fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nonebot_plugin_summary/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def __init__(self, prompt: str, api_key: str, model_name: str, endpoint: str):
self.model_name = model_name
self.api_key = api_key
self.endpoint = endpoint
self.client = AsyncOpenAI(api_key=api_key, base_url=endpoint)
self.client = AsyncOpenAI(api_key=api_key, base_url=endpoint,timeout=60)

async def post_content(self, string: str) -> str:
completion = await self.client.beta.chat.completions.parse(
Expand Down

0 comments on commit 8eb12fe

Please sign in to comment.