返回提交历史
Modified
g4f/providers/base_provider.py
+5
-5
XFEstudio/gpt4free
Update base_provider.py
8ed027f9
代码差异
1 个文件
+5
-5
@@ -119,11 +119,11 @@ class AbstractProvider(BaseProvider):
119
119
120
120
def create_func() -> str:
121
121
return concat_chunks(cls.create_completion(model, messages, **kwargs))
122
123
return await await_callback(
124
loop.run_in_executor(executor, create_func),
125
timeout=timeout
126
)
122
try:
123
return await asyncio.wait_for(
124
loop.run_in_executor(executor, create_func), timeout=timeout)
125
except TimeoutError:
126
raise
127
127
128
128
@classmethod
129
129
def create_function(cls, *args, **kwargs) -> CreateResult: