mirror of
https://github.com/xtekky/gpt4free.git
synced 2024-11-17 09:25:50 +00:00
Fix image generation in OpenaiChat
This commit is contained in:
parent
7e543f4747
commit
37b91e6dac
@ -533,6 +533,8 @@ class OpenaiChat(AsyncGeneratorProvider, ProviderModelMixin):
|
||||
return
|
||||
if line["message"]["metadata"]["message_type"] not in ("next", "continue", "variant"):
|
||||
return
|
||||
if line["message"]["recipient"] != "all":
|
||||
return
|
||||
if fields.conversation_id is None:
|
||||
fields.conversation_id = line["conversation_id"]
|
||||
fields.message_id = line["message"]["id"]
|
||||
|
Loading…
Reference in New Issue
Block a user