返回提交历史
Modified
g4f/Provider/ChatForAi.py
+1
-1
Modified
g4f/Provider/MyShell.py
+2
-2
XFEstudio/gpt4free
Enable Liaobots and ChatForAi again
4225a39a
代码差异
2 个文件
+3
-3
@@ -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
@@ -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():