summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuneye <73485421+Luneye@users.noreply.github.com>2023-10-24 23:36:48 +0200
committerGitHub <noreply@github.com>2023-10-24 23:36:48 +0200
commit7f6d85f861c3ba628f50ad4cbf3059eab0104333 (patch)
treef8af1bb5502af1051ecd0e526038132601504676
parentIndicated support of message history in ChatgptX.py (diff)
downloadgpt4free-7f6d85f861c3ba628f50ad4cbf3059eab0104333.tar
gpt4free-7f6d85f861c3ba628f50ad4cbf3059eab0104333.tar.gz
gpt4free-7f6d85f861c3ba628f50ad4cbf3059eab0104333.tar.bz2
gpt4free-7f6d85f861c3ba628f50ad4cbf3059eab0104333.tar.lz
gpt4free-7f6d85f861c3ba628f50ad4cbf3059eab0104333.tar.xz
gpt4free-7f6d85f861c3ba628f50ad4cbf3059eab0104333.tar.zst
gpt4free-7f6d85f861c3ba628f50ad4cbf3059eab0104333.zip
Diffstat (limited to '')
-rw-r--r--g4f/Provider/ChatForAi.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/g4f/Provider/ChatForAi.py b/g4f/Provider/ChatForAi.py
index 718affeb..7a4e9264 100644
--- a/g4f/Provider/ChatForAi.py
+++ b/g4f/Provider/ChatForAi.py
@@ -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() \ No newline at end of file
+ return hashlib.sha256(buffer.encode()).hexdigest()