Indicated support of message history in FakeGpt.py

This commit is contained in:
Luneye 2023-10-24 23:37:59 +02:00 committed by GitHub
parent 7f6d85f861
commit aee8d5e628
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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))
return ''.join(random.choice(string.ascii_lowercase + string.digits) for _ in range(length))