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

XFEstudio/gpt4free

Indicated support of message history in FakeGpt.py

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

代码差异

1 个文件 +2 -1
Modified g4f/Provider/FakeGpt.py +2 -1
@@ -10,6 +10,7 @@ from .helper import format_prompt
10 10
11 11 class FakeGpt(AsyncGeneratorProvider):
12 12 url = "https://chat-shared2.zhile.io"
13 supports_message_history = True
13 14 supports_gpt_35_turbo = True
14 15 working = True
15 16 _access_token = None
@@ -91,4 +92,4 @@ class FakeGpt(AsyncGeneratorProvider):
91 92 raise RuntimeError("No valid response")
92 93
93 94 def random_string(length: int = 10):
94 return ''.join(random.choice(string.ascii_lowercase + string.digits) for _ in range(length))
95 return ''.join(random.choice(string.ascii_lowercase + string.digits) for _ in range(length))