Enable Liaobots and ChatForAi again

pull/1118/head
Heiner Lohaus 12 months ago
parent 13e89d6ab9
commit 4225a39a49

@ -10,7 +10,7 @@ from .base_provider import AsyncGeneratorProvider
class ChatForAi(AsyncGeneratorProvider):
url = "https://chatforai.store"
working = False
working = True
supports_gpt_35_turbo = True
@classmethod

@ -8,7 +8,7 @@ from .base_provider import AsyncGeneratorProvider
from .helper import format_prompt
class MyShell(AsyncGeneratorProvider):
url = "https://api.myshell.ai/v1/bot/chat/send_message"
url = "https://app.myshell.ai/chat"
@classmethod
async def create_async_generator(
@ -38,7 +38,7 @@ class MyShell(AsyncGeneratorProvider):
"message": prompt,
"messageType": 1
}
async with session.post(cls.url, json=data) as response:
async with session.post("https://api.myshell.ai/v1/bot/chat/send_message", json=data) as response:
response.raise_for_status()
event = None
async for line in response.iter_lines():

Loading…
Cancel
Save