summaryrefslogtreecommitdiffstats
path: root/g4f/Provider
diff options
context:
space:
mode:
authorHeiner Lohaus <heiner.lohaus@netformic.com>2023-10-27 23:00:46 +0200
committerGitHub <noreply@github.com>2023-10-27 23:00:46 +0200
commitaf17c23f211f3e7109aaa3b9109b8e06499c443d (patch)
tree93895bb5109837cced6e5f3eaa7a98395aeafafa /g4f/Provider
parent~ | g4f `v-0.1.7.8` (diff)
parentUpdate config supports_message_history (diff)
downloadgpt4free-af17c23f211f3e7109aaa3b9109b8e06499c443d.tar
gpt4free-af17c23f211f3e7109aaa3b9109b8e06499c443d.tar.gz
gpt4free-af17c23f211f3e7109aaa3b9109b8e06499c443d.tar.bz2
gpt4free-af17c23f211f3e7109aaa3b9109b8e06499c443d.tar.lz
gpt4free-af17c23f211f3e7109aaa3b9109b8e06499c443d.tar.xz
gpt4free-af17c23f211f3e7109aaa3b9109b8e06499c443d.tar.zst
gpt4free-af17c23f211f3e7109aaa3b9109b8e06499c443d.zip
Diffstat (limited to 'g4f/Provider')
-rw-r--r--g4f/Provider/Acytoo.py1
-rw-r--r--g4f/Provider/AiAsk.py1
-rw-r--r--g4f/Provider/Aibn.py5
-rw-r--r--g4f/Provider/Ails.py5
-rw-r--r--g4f/Provider/Bing.py6
-rw-r--r--g4f/Provider/ChatBase.py7
-rw-r--r--g4f/Provider/ChatForAi.py4
-rw-r--r--g4f/Provider/Chatgpt4Online.py5
-rw-r--r--g4f/Provider/ChatgptAi.py3
-rw-r--r--g4f/Provider/ChatgptX.py1
-rw-r--r--g4f/Provider/DeepInfra.py1
-rw-r--r--g4f/Provider/FakeGpt.py3
-rw-r--r--g4f/Provider/FreeGpt.py4
-rw-r--r--g4f/Provider/GPTalk.py3
-rw-r--r--g4f/Provider/GeekGpt.py (renamed from g4f/Provider/Geekgpt.py)9
-rw-r--r--g4f/Provider/GptChatly.py7
-rw-r--r--g4f/Provider/GptForLove.py3
-rw-r--r--g4f/Provider/Hashnode.py3
-rw-r--r--g4f/Provider/Liaobots.py1
-rw-r--r--g4f/Provider/Llama2.py5
-rw-r--r--g4f/Provider/NoowAi.py5
-rw-r--r--g4f/Provider/Opchatgpts.py5
-rw-r--r--g4f/Provider/Vercel.py5
-rw-r--r--g4f/Provider/Ylokh.py5
-rw-r--r--g4f/Provider/You.py1
-rw-r--r--g4f/Provider/Yqcloud.py1
-rw-r--r--g4f/Provider/__init__.py4
27 files changed, 56 insertions, 47 deletions
diff --git a/g4f/Provider/Acytoo.py b/g4f/Provider/Acytoo.py
index 830d59bc..4dee176a 100644
--- a/g4f/Provider/Acytoo.py
+++ b/g4f/Provider/Acytoo.py
@@ -9,6 +9,7 @@ from .base_provider import AsyncGeneratorProvider
class Acytoo(AsyncGeneratorProvider):
url = 'https://chat.acytoo.com'
working = False
+ supports_message_history = True
supports_gpt_35_turbo = True
@classmethod
diff --git a/g4f/Provider/AiAsk.py b/g4f/Provider/AiAsk.py
index f10be389..ac123fc9 100644
--- a/g4f/Provider/AiAsk.py
+++ b/g4f/Provider/AiAsk.py
@@ -6,6 +6,7 @@ from .base_provider import AsyncGeneratorProvider
class AiAsk(AsyncGeneratorProvider):
url = "https://e.aiask.me"
+ supports_message_history = True
supports_gpt_35_turbo = True
working = True
diff --git a/g4f/Provider/Aibn.py b/g4f/Provider/Aibn.py
index 14935888..1f81a61e 100644
--- a/g4f/Provider/Aibn.py
+++ b/g4f/Provider/Aibn.py
@@ -9,9 +9,10 @@ from .base_provider import AsyncGeneratorProvider
class Aibn(AsyncGeneratorProvider):
- url = "https://aibn.cc"
+ url = "https://aibn.cc"
+ working = False
+ supports_message_history = True
supports_gpt_35_turbo = True
- working = False
@classmethod
async def create_async_generator(
diff --git a/g4f/Provider/Ails.py b/g4f/Provider/Ails.py
index fae3e62a..58010756 100644
--- a/g4f/Provider/Ails.py
+++ b/g4f/Provider/Ails.py
@@ -12,8 +12,9 @@ from .base_provider import AsyncGeneratorProvider
class Ails(AsyncGeneratorProvider):
- url: str = "https://ai.ls"
- working = False
+ url = "https://ai.ls"
+ working = False
+ supports_message_history = True
supports_gpt_35_turbo = True
@staticmethod
diff --git a/g4f/Provider/Bing.py b/g4f/Provider/Bing.py
index ca14510c..726faa2b 100644
--- a/g4f/Provider/Bing.py
+++ b/g4f/Provider/Bing.py
@@ -30,10 +30,10 @@ default_cookies = {
}
class Bing(AsyncGeneratorProvider):
- url = "https://bing.com/chat"
- working = True
+ url = "https://bing.com/chat"
+ working = True
supports_message_history = True
- supports_gpt_4 = True
+ supports_gpt_4 = True
@staticmethod
def create_async_generator(
diff --git a/g4f/Provider/ChatBase.py b/g4f/Provider/ChatBase.py
index ada51fed..ba3d4ea5 100644
--- a/g4f/Provider/ChatBase.py
+++ b/g4f/Provider/ChatBase.py
@@ -7,12 +7,11 @@ from .base_provider import AsyncGeneratorProvider
class ChatBase(AsyncGeneratorProvider):
- url = "https://www.chatbase.co"
+ url = "https://www.chatbase.co"
supports_gpt_35_turbo = True
supports_message_history = True
- working = True
- list_incorrect_responses = ["support@chatbase",
- "about Chatbase"]
+ working = True
+ list_incorrect_responses = ["support@chatbase", "about Chatbase"]
@classmethod
async def create_async_generator(
diff --git a/g4f/Provider/ChatForAi.py b/g4f/Provider/ChatForAi.py
index 7a4e9264..7a123f0f 100644
--- a/g4f/Provider/ChatForAi.py
+++ b/g4f/Provider/ChatForAi.py
@@ -9,8 +9,8 @@ from .base_provider import AsyncGeneratorProvider
class ChatForAi(AsyncGeneratorProvider):
- url = "https://chatforai.store"
- working = True
+ url = "https://chatforai.store"
+ working = True
supports_message_history = True
supports_gpt_35_turbo = True
diff --git a/g4f/Provider/Chatgpt4Online.py b/g4f/Provider/Chatgpt4Online.py
index e81c8d4c..d7509639 100644
--- a/g4f/Provider/Chatgpt4Online.py
+++ b/g4f/Provider/Chatgpt4Online.py
@@ -8,9 +8,10 @@ from .base_provider import AsyncGeneratorProvider
class Chatgpt4Online(AsyncGeneratorProvider):
- url = "https://chatgpt4online.org"
+ url = "https://chatgpt4online.org"
+ supports_message_history = True
supports_gpt_35_turbo = True
- working = False
+ working = False
@classmethod
async def create_async_generator(
diff --git a/g4f/Provider/ChatgptAi.py b/g4f/Provider/ChatgptAi.py
index 9783d868..40ad9481 100644
--- a/g4f/Provider/ChatgptAi.py
+++ b/g4f/Provider/ChatgptAi.py
@@ -8,8 +8,9 @@ from .base_provider import AsyncGeneratorProvider
class ChatgptAi(AsyncGeneratorProvider):
- url: str = "https://chatgpt.ai"
+ url = "https://chatgpt.ai"
working = True
+ supports_message_history = True
supports_gpt_35_turbo = True
_system = None
diff --git a/g4f/Provider/ChatgptX.py b/g4f/Provider/ChatgptX.py
index 75ff0da5..3101c05d 100644
--- a/g4f/Provider/ChatgptX.py
+++ b/g4f/Provider/ChatgptX.py
@@ -12,7 +12,6 @@ from .helper import format_prompt
class ChatgptX(AsyncGeneratorProvider):
url = "https://chatgptx.de"
supports_gpt_35_turbo = True
- supports_message_history = True
working = True
@classmethod
diff --git a/g4f/Provider/DeepInfra.py b/g4f/Provider/DeepInfra.py
index 70045cae..da6333ad 100644
--- a/g4f/Provider/DeepInfra.py
+++ b/g4f/Provider/DeepInfra.py
@@ -9,6 +9,7 @@ from .base_provider import AsyncGeneratorProvider
class DeepInfra(AsyncGeneratorProvider):
url = "https://deepinfra.com"
+ supports_message_history = True
working = True
@classmethod
diff --git a/g4f/Provider/FakeGpt.py b/g4f/Provider/FakeGpt.py
index a89425d3..daa96737 100644
--- a/g4f/Provider/FakeGpt.py
+++ b/g4f/Provider/FakeGpt.py
@@ -10,11 +10,10 @@ from .helper import format_prompt
class FakeGpt(AsyncGeneratorProvider):
url = "https://chat-shared2.zhile.io"
- supports_message_history = True
supports_gpt_35_turbo = True
working = True
_access_token = None
- _cookie_jar = None
+ _cookie_jar = None
@classmethod
async def create_async_generator(
diff --git a/g4f/Provider/FreeGpt.py b/g4f/Provider/FreeGpt.py
index 758e411b..a3a26fe6 100644
--- a/g4f/Provider/FreeGpt.py
+++ b/g4f/Provider/FreeGpt.py
@@ -11,10 +11,10 @@ domains = [
]
class FreeGpt(AsyncGeneratorProvider):
- url = "https://freegpts1.aifree.site/"
+ url = "https://freegpts1.aifree.site/"
+ working = True
supports_message_history = True
supports_gpt_35_turbo = True
- working = True
@classmethod
async def create_async_generator(
diff --git a/g4f/Provider/GPTalk.py b/g4f/Provider/GPTalk.py
index a5644fc4..b5881e5d 100644
--- a/g4f/Provider/GPTalk.py
+++ b/g4f/Provider/GPTalk.py
@@ -10,9 +10,8 @@ from .helper import format_prompt
class GPTalk(AsyncGeneratorProvider):
url = "https://gptalk.net"
- supports_gpt_35_turbo = True
- supports_message_history = True
working = True
+ supports_gpt_35_turbo = True
_auth = None
@classmethod
diff --git a/g4f/Provider/Geekgpt.py b/g4f/Provider/GeekGpt.py
index 3c577cf8..8c449745 100644
--- a/g4f/Provider/Geekgpt.py
+++ b/g4f/Provider/GeekGpt.py
@@ -7,11 +7,12 @@ from json import dumps
class GeekGpt(BaseProvider):
- url = 'https://chat.geekgpt.org'
- supports_stream = True
- working = True
+ url = 'https://chat.geekgpt.org'
+ working = True
+ supports_message_history = True
+ supports_stream = True
supports_gpt_35_turbo = True
- supports_gpt_4 = True
+ supports_gpt_4 = True
@classmethod
def create_completion(
diff --git a/g4f/Provider/GptChatly.py b/g4f/Provider/GptChatly.py
index 465d2527..a493c745 100644
--- a/g4f/Provider/GptChatly.py
+++ b/g4f/Provider/GptChatly.py
@@ -9,10 +9,11 @@ from .helper import get_cookies
class GptChatly(AsyncProvider):
- url = "https://gptchatly.com"
+ url = "https://gptchatly.com"
+ working = True
+ supports_message_history = True
supports_gpt_35_turbo = True
- supports_gpt_4 = True
- working = True
+ supports_gpt_4 = True
@classmethod
async def create_async(
diff --git a/g4f/Provider/GptForLove.py b/g4f/Provider/GptForLove.py
index 4b31809c..e4787e5d 100644
--- a/g4f/Provider/GptForLove.py
+++ b/g4f/Provider/GptForLove.py
@@ -9,9 +9,8 @@ from .helper import format_prompt
class GptForLove(AsyncGeneratorProvider):
url = "https://ai18.gptforlove.com"
- supports_message_history = True
- supports_gpt_35_turbo = True
working = True
+ supports_gpt_35_turbo = True
@classmethod
async def create_async_generator(
diff --git a/g4f/Provider/Hashnode.py b/g4f/Provider/Hashnode.py
index 7f308d7e..f562787b 100644
--- a/g4f/Provider/Hashnode.py
+++ b/g4f/Provider/Hashnode.py
@@ -13,8 +13,9 @@ class SearchTypes():
class Hashnode(AsyncGeneratorProvider):
url = "https://hashnode.com"
- supports_gpt_35_turbo = True
working = True
+ supports_message_history = True
+ supports_gpt_35_turbo = True
_sources = []
@classmethod
diff --git a/g4f/Provider/Liaobots.py b/g4f/Provider/Liaobots.py
index 9dc52aae..b56d08ab 100644
--- a/g4f/Provider/Liaobots.py
+++ b/g4f/Provider/Liaobots.py
@@ -31,6 +31,7 @@ models = {
class Liaobots(AsyncGeneratorProvider):
url = "https://liaobots.site"
working = True
+ supports_message_history = True
supports_gpt_35_turbo = True
supports_gpt_4 = True
_auth_code = None
diff --git a/g4f/Provider/Llama2.py b/g4f/Provider/Llama2.py
index 1b332f86..efe5bdc6 100644
--- a/g4f/Provider/Llama2.py
+++ b/g4f/Provider/Llama2.py
@@ -13,8 +13,9 @@ models = {
}
class Llama2(AsyncGeneratorProvider):
- url = "https://www.llama2.ai"
- working = True
+ url = "https://www.llama2.ai"
+ working = True
+ supports_message_history = True
@classmethod
async def create_async_generator(
diff --git a/g4f/Provider/NoowAi.py b/g4f/Provider/NoowAi.py
index 9dc26d35..c337514a 100644
--- a/g4f/Provider/NoowAi.py
+++ b/g4f/Provider/NoowAi.py
@@ -8,9 +8,10 @@ from .base_provider import AsyncGeneratorProvider
class NoowAi(AsyncGeneratorProvider):
- url = "https://noowai.com"
+ url = "https://noowai.com"
+ supports_message_history = True
supports_gpt_35_turbo = True
- working = True
+ working = True
@classmethod
async def create_async_generator(
diff --git a/g4f/Provider/Opchatgpts.py b/g4f/Provider/Opchatgpts.py
index e56f5b40..c77acb22 100644
--- a/g4f/Provider/Opchatgpts.py
+++ b/g4f/Provider/Opchatgpts.py
@@ -8,9 +8,10 @@ from .base_provider import AsyncGeneratorProvider
class Opchatgpts(AsyncGeneratorProvider):
- url = "https://opchatgpts.net"
+ url = "https://opchatgpts.net"
+ working = False
+ supports_message_history = True
supports_gpt_35_turbo = True
- working = False
@classmethod
async def create_async_generator(
diff --git a/g4f/Provider/Vercel.py b/g4f/Provider/Vercel.py
index eb5aa20a..a7bbc496 100644
--- a/g4f/Provider/Vercel.py
+++ b/g4f/Provider/Vercel.py
@@ -9,9 +9,10 @@ from ..debug import logging
class Vercel(BaseProvider):
url = 'https://sdk.vercel.ai'
- working = True
+ working = True
+ supports_message_history = True
supports_gpt_35_turbo = True
- supports_stream = True
+ supports_stream = True
@staticmethod
def create_completion(
diff --git a/g4f/Provider/Ylokh.py b/g4f/Provider/Ylokh.py
index dce76f22..abf4d9c1 100644
--- a/g4f/Provider/Ylokh.py
+++ b/g4f/Provider/Ylokh.py
@@ -7,8 +7,9 @@ from .base_provider import AsyncGeneratorProvider
from ..typing import AsyncResult, Messages
class Ylokh(AsyncGeneratorProvider):
- url = "https://chat.ylokh.xyz"
- working = False
+ url = "https://chat.ylokh.xyz"
+ working = False
+ supports_message_history = True
supports_gpt_35_turbo = True
diff --git a/g4f/Provider/You.py b/g4f/Provider/You.py
index 34972586..91a195cf 100644
--- a/g4f/Provider/You.py
+++ b/g4f/Provider/You.py
@@ -10,7 +10,6 @@ from .base_provider import AsyncGeneratorProvider, format_prompt
class You(AsyncGeneratorProvider):
url = "https://you.com"
working = True
- supports_message_history = True
supports_gpt_35_turbo = True
diff --git a/g4f/Provider/Yqcloud.py b/g4f/Provider/Yqcloud.py
index 12eb7bbb..2829c5bf 100644
--- a/g4f/Provider/Yqcloud.py
+++ b/g4f/Provider/Yqcloud.py
@@ -10,7 +10,6 @@ from .base_provider import AsyncGeneratorProvider, format_prompt
class Yqcloud(AsyncGeneratorProvider):
url = "https://chat9.yqcloud.top/"
working = True
- supports_message_history = True
supports_gpt_35_turbo = True
@staticmethod
diff --git a/g4f/Provider/__init__.py b/g4f/Provider/__init__.py
index 60d3bd25..1dd603b1 100644
--- a/g4f/Provider/__init__.py
+++ b/g4f/Provider/__init__.py
@@ -36,7 +36,7 @@ from .Vercel import Vercel
from .Ylokh import Ylokh
from .You import You
from .Yqcloud import Yqcloud
-from .Geekgpt import GeekGpt
+from .GeekGpt import GeekGpt
from .base_provider import BaseProvider, AsyncProvider, AsyncGeneratorProvider
from .retry_provider import RetryProvider
@@ -111,7 +111,7 @@ class ProviderUtils:
'Ylokh': Ylokh,
'You': You,
'Yqcloud': Yqcloud,
- 'Geekgpt': GeekGpt,
+ 'GeekGpt': GeekGpt,
'BaseProvider': BaseProvider,
'AsyncProvider': AsyncProvider,