返回提交历史
Modified
g4f/Provider/ChatForAi.py
+2
-1
XFEstudio/gpt4free
Indicated support of message history in ChatForAi.py
7f6d85f8
代码差异
1 个文件
+2
-1
@@ -11,6 +11,7 @@ from .base_provider import AsyncGeneratorProvider
11
11
class ChatForAi(AsyncGeneratorProvider):
12
12
url = "https://chatforai.store"
13
13
working = True
14
supports_message_history = True
14
15
supports_gpt_35_turbo = True
15
16
16
17
@classmethod
@@ -69,4 +70,4 @@ class ChatForAi(AsyncGeneratorProvider):
69
70
70
71
def generate_signature(timestamp: int, message: str, id: str):
71
72
buffer = f"{timestamp}:{id}:{message}:7YN8z6d6"
72
return hashlib.sha256(buffer.encode()).hexdigest()
73
return hashlib.sha256(buffer.encode()).hexdigest()