mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-06-05 14:55:18 +02:00
adjust "timeout" config param into _cons_kwargs
This commit is contained in:
parent
8da952a04c
commit
ec4c773c80
1 changed files with 1 additions and 1 deletions
|
|
@ -149,7 +149,6 @@ class OpenAIGPTAPI(BaseGPTAPI, RateLimiter):
|
|||
async def _achat_completion_stream(self, messages: list[dict]) -> str:
|
||||
response = await openai.ChatCompletion.acreate(
|
||||
**self._cons_kwargs(messages),
|
||||
timeout=3,
|
||||
stream=True
|
||||
)
|
||||
|
||||
|
|
@ -189,6 +188,7 @@ class OpenAIGPTAPI(BaseGPTAPI, RateLimiter):
|
|||
"stop": None,
|
||||
"temperature": 0.3
|
||||
}
|
||||
kwargs["timeout"] = 3
|
||||
return kwargs
|
||||
|
||||
async def _achat_completion(self, messages: list[dict]) -> dict:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue