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

XFEstudio/gpt4free

Fix image generation in OpenaiChat

37b91e6d
Heiner Lohaus <hlohaus@users.noreply.github.com>
提交于

代码差异

1 个文件 +2 -0
Modified g4f/Provider/needs_auth/OpenaiChat.py +2 -0
@@ -533,6 +533,8 @@ class OpenaiChat(AsyncGeneratorProvider, ProviderModelMixin):
533 533 return
534 534 if line["message"]["metadata"]["message_type"] not in ("next", "continue", "variant"):
535 535 return
536 if line["message"]["recipient"] != "all":
537 return
536 538 if fields.conversation_id is None:
537 539 fields.conversation_id = line["conversation_id"]
538 540 fields.message_id = line["message"]["id"]