diff options
author | Luneye <73485421+Luneye@users.noreply.github.com> | 2023-10-24 23:37:59 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-24 23:37:59 +0200 |
commit | aee8d5e628094a8c4bfeded5370d1362cf6d82af (patch) | |
tree | f0c6bebc9a752845fdd89c0288e352c4f83dc0c7 /g4f/Provider/FakeGpt.py | |
parent | Indicated support of message history in ChatForAi.py (diff) | |
download | gpt4free-aee8d5e628094a8c4bfeded5370d1362cf6d82af.tar gpt4free-aee8d5e628094a8c4bfeded5370d1362cf6d82af.tar.gz gpt4free-aee8d5e628094a8c4bfeded5370d1362cf6d82af.tar.bz2 gpt4free-aee8d5e628094a8c4bfeded5370d1362cf6d82af.tar.lz gpt4free-aee8d5e628094a8c4bfeded5370d1362cf6d82af.tar.xz gpt4free-aee8d5e628094a8c4bfeded5370d1362cf6d82af.tar.zst gpt4free-aee8d5e628094a8c4bfeded5370d1362cf6d82af.zip |
Diffstat (limited to '')
-rw-r--r-- | g4f/Provider/FakeGpt.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/g4f/Provider/FakeGpt.py b/g4f/Provider/FakeGpt.py index 5bce1280..a89425d3 100644 --- a/g4f/Provider/FakeGpt.py +++ b/g4f/Provider/FakeGpt.py @@ -10,6 +10,7 @@ from .helper import format_prompt class FakeGpt(AsyncGeneratorProvider): url = "https://chat-shared2.zhile.io" + supports_message_history = True supports_gpt_35_turbo = True working = True _access_token = None @@ -91,4 +92,4 @@ class FakeGpt(AsyncGeneratorProvider): raise RuntimeError("No valid response") def random_string(length: int = 10): - return ''.join(random.choice(string.ascii_lowercase + string.digits) for _ in range(length))
\ No newline at end of file + return ''.join(random.choice(string.ascii_lowercase + string.digits) for _ in range(length)) |