Indicated support of message history in ChatForAi.py

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

View File

@ -11,6 +11,7 @@ from .base_provider import AsyncGeneratorProvider
class ChatForAi(AsyncGeneratorProvider):
url = "https://chatforai.store"
working = True
supports_message_history = True
supports_gpt_35_turbo = True
@classmethod
@ -69,4 +70,4 @@ class ChatForAi(AsyncGeneratorProvider):
def generate_signature(timestamp: int, message: str, id: str):
buffer = f"{timestamp}:{id}:{message}:7YN8z6d6"
return hashlib.sha256(buffer.encode()).hexdigest()
return hashlib.sha256(buffer.encode()).hexdigest()