summaryrefslogtreecommitdiffstats
path: root/g4f/Provider
diff options
context:
space:
mode:
authorHeiner Lohaus <heiner@lohaus.eu>2023-10-22 09:04:14 +0200
committerHeiner Lohaus <heiner@lohaus.eu>2023-10-22 09:04:14 +0200
commit4225a39a4987e28ad41df02ee67e468def7a7061 (patch)
tree276c97efee6f7e33ae5b05ae1df6528763b92024 /g4f/Provider
parentFix MyShell Provider (diff)
downloadgpt4free-4225a39a4987e28ad41df02ee67e468def7a7061.tar
gpt4free-4225a39a4987e28ad41df02ee67e468def7a7061.tar.gz
gpt4free-4225a39a4987e28ad41df02ee67e468def7a7061.tar.bz2
gpt4free-4225a39a4987e28ad41df02ee67e468def7a7061.tar.lz
gpt4free-4225a39a4987e28ad41df02ee67e468def7a7061.tar.xz
gpt4free-4225a39a4987e28ad41df02ee67e468def7a7061.tar.zst
gpt4free-4225a39a4987e28ad41df02ee67e468def7a7061.zip
Diffstat (limited to '')
-rw-r--r--g4f/Provider/ChatForAi.py2
-rw-r--r--g4f/Provider/MyShell.py4
2 files changed, 3 insertions, 3 deletions
diff --git a/g4f/Provider/ChatForAi.py b/g4f/Provider/ChatForAi.py
index 0ccc8444..718affeb 100644
--- a/g4f/Provider/ChatForAi.py
+++ b/g4f/Provider/ChatForAi.py
@@ -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
diff --git a/g4f/Provider/MyShell.py b/g4f/Provider/MyShell.py
index fefd08f4..fe8604bb 100644
--- a/g4f/Provider/MyShell.py
+++ b/g4f/Provider/MyShell.py
@@ -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():