XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet
公开
关注 0 Fork 0 Star 0
返回提交历史

XFEstudio/gpt4free

Update base_provider.py

8ed027f9
H Lohaus <hlohaus@users.noreply.github.com>
提交于

代码差异

1 个文件 +5 -5
Modified g4f/providers/base_provider.py +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: