diff options
author | Tekky <98614666+xtekky@users.noreply.github.com> | 2023-10-25 15:07:40 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-25 15:07:40 +0200 |
commit | a167970d766671ccb79613dbeacf5747f9c3f2bf (patch) | |
tree | 1e6c5479bd3793cfef48775229764c22881e5e8a /g4f/Provider/ChatForAi.py | |
parent | Merge pull request #1152 from guspan-tanadi/Providerlinkpath-1 (diff) | |
parent | Indicated support of message history in GptForLove.py (diff) | |
download | gpt4free-a167970d766671ccb79613dbeacf5747f9c3f2bf.tar gpt4free-a167970d766671ccb79613dbeacf5747f9c3f2bf.tar.gz gpt4free-a167970d766671ccb79613dbeacf5747f9c3f2bf.tar.bz2 gpt4free-a167970d766671ccb79613dbeacf5747f9c3f2bf.tar.lz gpt4free-a167970d766671ccb79613dbeacf5747f9c3f2bf.tar.xz gpt4free-a167970d766671ccb79613dbeacf5747f9c3f2bf.tar.zst gpt4free-a167970d766671ccb79613dbeacf5747f9c3f2bf.zip |
Diffstat (limited to '')
-rw-r--r-- | g4f/Provider/ChatForAi.py | 3 |
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() |