Indicated support of message history in ChatForAi.py

pull/1149/head
Luneye 11 months ago committed by GitHub
parent dc798b520d
commit 7f6d85f861
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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()

Loading…
Cancel
Save