返回提交历史
Modified
g4f/Provider/Allyfy.py
+3
-3
XFEstudio/gpt4free
fix(g4f/Provider/Allyfy.py): update API endpoint to full URL
8ab55107
代码差异
1 个文件
+3
-3
@@ -9,8 +9,8 @@ from .helper import format_prompt
9
9
10
10
11
11
class Allyfy(AsyncGeneratorProvider):
12
url = "https://chatbot.allyfy.chat"
13
api_endpoint = "/api/v1/message/stream/super/chat"
12
url = "https://allyfy.chat"
13
api_endpoint = "https://chatbot.allyfy.chat/api/v1/message/stream/super/chat"
14
14
working = True
15
15
supports_gpt_35_turbo = True
16
16
@@ -53,7 +53,7 @@ class Allyfy(AsyncGeneratorProvider):
53
53
"packageName": "com.cch.allyfy.webh",
54
54
}
55
55
}
56
async with session.post(f"{cls.url}{cls.api_endpoint}", json=data, proxy=proxy) as response:
56
async with session.post(f"{cls.api_endpoint}", json=data, proxy=proxy) as response:
57
57
response.raise_for_status()
58
58
full_response = []
59
59
async for line in response.content: