Skip to content

Commit

Permalink
Merge pull request #1862 from hlohaus/nem
Browse files Browse the repository at this point in the history
Fix image generation in OpenaiChat
  • Loading branch information
hlohaus authored Apr 19, 2024
2 parents 11cb4f1 + 37b91e6 commit a27d908
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 a27d908

Please sign in to comment.