diff options
author | Heiner Lohaus <heiner@lohaus.eu> | 2023-10-22 08:57:31 +0200 |
---|---|---|
committer | Heiner Lohaus <heiner@lohaus.eu> | 2023-10-22 08:57:31 +0200 |
commit | 13e89d6ab9e3016741fdcbd03cc4996faec54f9a (patch) | |
tree | ff4b350e57dd8a77d8e7b41f85431bdb85118a4f /g4f/Provider/FakeGpt.py | |
parent | Add FakeGpt Provider (diff) | |
download | gpt4free-13e89d6ab9e3016741fdcbd03cc4996faec54f9a.tar gpt4free-13e89d6ab9e3016741fdcbd03cc4996faec54f9a.tar.gz gpt4free-13e89d6ab9e3016741fdcbd03cc4996faec54f9a.tar.bz2 gpt4free-13e89d6ab9e3016741fdcbd03cc4996faec54f9a.tar.lz gpt4free-13e89d6ab9e3016741fdcbd03cc4996faec54f9a.tar.xz gpt4free-13e89d6ab9e3016741fdcbd03cc4996faec54f9a.tar.zst gpt4free-13e89d6ab9e3016741fdcbd03cc4996faec54f9a.zip |
Diffstat (limited to '')
-rw-r--r-- | g4f/Provider/FakeGpt.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/g4f/Provider/FakeGpt.py b/g4f/Provider/FakeGpt.py index 43298a4c..5bce1280 100644 --- a/g4f/Provider/FakeGpt.py +++ b/g4f/Provider/FakeGpt.py @@ -83,8 +83,8 @@ class FakeGpt(AsyncGeneratorProvider): line = json.loads(line) if line["message"]["metadata"]["message_type"] == "next": new_message = line["message"]["content"]["parts"][0] - yield new_message[len(last_message):] - last_message = new_message + yield new_message[len(last_message):] + last_message = new_message except: continue if not last_message: |