XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet
公开
关注 0 Fork 0 Star 1
返回提交历史

XFEstudio/gpt4free

Indicated support of message history in ChatForAi.py

7f6d85f8
Luneye <73485421+Luneye@users.noreply.github.com>
提交于

代码差异

1 个文件 +2 -1
Modified g4f/Provider/ChatForAi.py +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()