Merge pull request #1862 from hlohaus/nem

Fix image generation in OpenaiChat
This commit is contained in:
H Lohaus 2024-04-19 15:38:11 +02:00 committed by GitHub
commit a27d908696
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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"]