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

XFEstudio/gpt4free

Indicated support of message history in You.py

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

代码差异

1 个文件 +2 -1
Modified g4f/Provider/You.py +2 -1
@@ -10,6 +10,7 @@ from .base_provider import AsyncGeneratorProvider, format_prompt
10 10 class You(AsyncGeneratorProvider):
11 11 url = "https://you.com"
12 12 working = True
13 supports_message_history = True
13 14 supports_gpt_35_turbo = True
14 15
15 16
@@ -37,4 +38,4 @@ class You(AsyncGeneratorProvider):
37 38 start = b'data: {"youChatToken": '
38 39 async for line in response.iter_lines():
39 40 if line.startswith(start):
40 yield json.loads(line[len(start):-1])
41 yield json.loads(line[len(start):-1])