diff options
author | H Lohaus <hlohaus@users.noreply.github.com> | 2024-04-19 15:38:11 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-19 15:38:11 +0200 |
commit | a27d908696ff7edcb5436c747a8733be5b4cf8c5 (patch) | |
tree | e386f39d90e274797009e006dd8406c82f972481 /g4f | |
parent | Update integration.py (diff) | |
parent | Fix image generation in OpenaiChat (diff) | |
download | gpt4free-a27d908696ff7edcb5436c747a8733be5b4cf8c5.tar gpt4free-a27d908696ff7edcb5436c747a8733be5b4cf8c5.tar.gz gpt4free-a27d908696ff7edcb5436c747a8733be5b4cf8c5.tar.bz2 gpt4free-a27d908696ff7edcb5436c747a8733be5b4cf8c5.tar.lz gpt4free-a27d908696ff7edcb5436c747a8733be5b4cf8c5.tar.xz gpt4free-a27d908696ff7edcb5436c747a8733be5b4cf8c5.tar.zst gpt4free-a27d908696ff7edcb5436c747a8733be5b4cf8c5.zip |
Diffstat (limited to '')
-rw-r--r-- | g4f/Provider/needs_auth/OpenaiChat.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/g4f/Provider/needs_auth/OpenaiChat.py b/g4f/Provider/needs_auth/OpenaiChat.py index 07620c80..ae028965 100644 --- a/g4f/Provider/needs_auth/OpenaiChat.py +++ b/g4f/Provider/needs_auth/OpenaiChat.py @@ -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"] |