Skip to content

Commit

Permalink
Fix image generation in OpenaiChat
Browse files Browse the repository at this point in the history
  • Loading branch information
hlohaus committed Apr 19, 2024
1 parent 7e543f4 commit 37b91e6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions g4f/Provider/needs_auth/OpenaiChat.py
Original file line number Diff line number Diff line change
Expand Up @@ -533,6 +533,8 @@ async def iter_messages_line(cls, session: StreamSession, line: bytes, fields: C
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"]
Expand Down

0 comments on commit 37b91e6

Please sign in to comment.