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

XFEstudio/gpt4free

Fix pydantic error

8994c77d
hlohaus <983577+hlohaus@users.noreply.github.com>
提交于

代码差异

1 个文件 +1 -1
Modified g4f/client/stubs.py +1 -1
@@ -191,7 +191,7 @@ class ChatCompletion(BaseModel):
191 191 tool_calls: list[ToolCallModel] = None,
192 192 usage: UsageModel = None,
193 193 conversation: dict = None,
194 reasoning_content: Optional[str] = None
194 reasoning_content: list[Reasoning] = None
195 195 ):
196 196 return super().model_construct(
197 197 id=f"chatcmpl-{completion_id}" if completion_id else None,