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

XFEstudio/gpt4free

Enable Liaobots and ChatForAi again

4225a39a
Heiner Lohaus <heiner@lohaus.eu>
提交于

代码差异

2 个文件 +3 -3
Modified g4f/Provider/ChatForAi.py +1 -1
@@ -10,7 +10,7 @@ from .base_provider import AsyncGeneratorProvider
10 10
11 11 class ChatForAi(AsyncGeneratorProvider):
12 12 url = "https://chatforai.store"
13 working = False
13 working = True
14 14 supports_gpt_35_turbo = True
15 15
16 16 @classmethod
Modified g4f/Provider/MyShell.py +2 -2
@@ -8,7 +8,7 @@ from .base_provider import AsyncGeneratorProvider
8 8 from .helper import format_prompt
9 9
10 10 class MyShell(AsyncGeneratorProvider):
11 url = "https://api.myshell.ai/v1/bot/chat/send_message"
11 url = "https://app.myshell.ai/chat"
12 12
13 13 @classmethod
14 14 async def create_async_generator(
@@ -38,7 +38,7 @@ class MyShell(AsyncGeneratorProvider):
38 38 "message": prompt,
39 39 "messageType": 1
40 40 }
41 async with session.post(cls.url, json=data) as response:
41 async with session.post("https://api.myshell.ai/v1/bot/chat/send_message", json=data) as response:
42 42 response.raise_for_status()
43 43 event = None
44 44 async for line in response.iter_lines():