summaryrefslogtreecommitdiffstats
path: root/g4f/Provider/not_working/GptChatly.py
diff options
context:
space:
mode:
authorTekky <98614666+xtekky@users.noreply.github.com>2024-09-07 21:37:24 +0200
committerGitHub <noreply@github.com>2024-09-07 21:37:24 +0200
commit07fa87b4d180259d1da86afb565e14ac3d60d50b (patch)
treed474a2bf8bd79cf94bfa48cbaca3917659dd19be /g4f/Provider/not_working/GptChatly.py
parentMerge pull request #2206 from Parthsadaria/patch-1 (diff)
parentg4f/models.py g4f/Provider/MagickPen.py (diff)
downloadgpt4free-07fa87b4d180259d1da86afb565e14ac3d60d50b.tar
gpt4free-07fa87b4d180259d1da86afb565e14ac3d60d50b.tar.gz
gpt4free-07fa87b4d180259d1da86afb565e14ac3d60d50b.tar.bz2
gpt4free-07fa87b4d180259d1da86afb565e14ac3d60d50b.tar.lz
gpt4free-07fa87b4d180259d1da86afb565e14ac3d60d50b.tar.xz
gpt4free-07fa87b4d180259d1da86afb565e14ac3d60d50b.tar.zst
gpt4free-07fa87b4d180259d1da86afb565e14ac3d60d50b.zip
Diffstat (limited to 'g4f/Provider/not_working/GptChatly.py')
-rw-r--r--g4f/Provider/not_working/GptChatly.py35
1 files changed, 0 insertions, 35 deletions
diff --git a/g4f/Provider/not_working/GptChatly.py b/g4f/Provider/not_working/GptChatly.py
deleted file mode 100644
index a1e3dd74..00000000
--- a/g4f/Provider/not_working/GptChatly.py
+++ /dev/null
@@ -1,35 +0,0 @@
-from __future__ import annotations
-
-from ...requests import Session, get_session_from_browser
-from ...typing import Messages
-from ..base_provider import AsyncProvider
-
-
-class GptChatly(AsyncProvider):
- url = "https://gptchatly.com"
- working = False
- supports_message_history = True
- supports_gpt_35_turbo = True
-
- @classmethod
- async def create_async(
- cls,
- model: str,
- messages: Messages,
- proxy: str = None,
- timeout: int = 120,
- session: Session = None,
- **kwargs
- ) -> str:
- if not session:
- session = get_session_from_browser(cls.url, proxy=proxy, timeout=timeout)
- if model.startswith("gpt-4"):
- chat_url = f"{cls.url}/fetch-gpt4-response"
- else:
- chat_url = f"{cls.url}/felch-response"
- data = {
- "past_conversations": messages
- }
- response = session.post(chat_url, json=data)
- response.raise_for_status()
- return response.json()["chatGPTResponse"] \ No newline at end of file