Skip to content

Commit

Permalink
Merge pull request #1176 from hlohaus/history
Browse files Browse the repository at this point in the history
Update config supports_message_history
  • Loading branch information
hlohaus authored Oct 27, 2023
2 parents 1e5a0ed + 79cf039 commit af17c23
Show file tree
Hide file tree
Showing 27 changed files with 56 additions and 47 deletions.
1 change: 1 addition & 0 deletions g4f/Provider/Acytoo.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
class Acytoo(AsyncGeneratorProvider):
url = 'https://chat.acytoo.com'
working = False
supports_message_history = True
supports_gpt_35_turbo = True

@classmethod
Expand Down
1 change: 1 addition & 0 deletions g4f/Provider/AiAsk.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

class AiAsk(AsyncGeneratorProvider):
url = "https://e.aiask.me"
supports_message_history = True
supports_gpt_35_turbo = True
working = True

Expand Down
5 changes: 3 additions & 2 deletions g4f/Provider/Aibn.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@


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(
Expand Down
5 changes: 3 additions & 2 deletions g4f/Provider/Ails.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@


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
Expand Down
6 changes: 3 additions & 3 deletions g4f/Provider/Bing.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ class Tones():
}

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(
Expand Down
7 changes: 3 additions & 4 deletions g4f/Provider/ChatBase.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,11 @@


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(
Expand Down
4 changes: 2 additions & 2 deletions g4f/Provider/ChatForAi.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@


class ChatForAi(AsyncGeneratorProvider):
url = "https://chatforai.store"
working = True
url = "https://chatforai.store"
working = True
supports_message_history = True
supports_gpt_35_turbo = True

Expand Down
5 changes: 3 additions & 2 deletions g4f/Provider/Chatgpt4Online.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@


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(
Expand Down
3 changes: 2 additions & 1 deletion g4f/Provider/ChatgptAi.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@


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

Expand Down
1 change: 0 additions & 1 deletion g4f/Provider/ChatgptX.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
class ChatgptX(AsyncGeneratorProvider):
url = "https://chatgptx.de"
supports_gpt_35_turbo = True
supports_message_history = True
working = True

@classmethod
Expand Down
1 change: 1 addition & 0 deletions g4f/Provider/DeepInfra.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

class DeepInfra(AsyncGeneratorProvider):
url = "https://deepinfra.com"
supports_message_history = True
working = True

@classmethod
Expand Down
3 changes: 1 addition & 2 deletions g4f/Provider/FakeGpt.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,10 @@

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(
Expand Down
4 changes: 2 additions & 2 deletions g4f/Provider/FreeGpt.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
]

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(
Expand Down
3 changes: 1 addition & 2 deletions g4f/Provider/GPTalk.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,8 @@

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
Expand Down
9 changes: 5 additions & 4 deletions g4f/Provider/Geekgpt.py → g4f/Provider/GeekGpt.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,12 @@


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(
Expand Down
7 changes: 4 additions & 3 deletions g4f/Provider/GptChatly.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@


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(
Expand Down
3 changes: 1 addition & 2 deletions g4f/Provider/GptForLove.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,8 @@

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(
Expand Down
3 changes: 2 additions & 1 deletion g4f/Provider/Hashnode.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions g4f/Provider/Liaobots.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
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
Expand Down
5 changes: 3 additions & 2 deletions g4f/Provider/Llama2.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@
}

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(
Expand Down
5 changes: 3 additions & 2 deletions g4f/Provider/NoowAi.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@


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(
Expand Down
5 changes: 3 additions & 2 deletions g4f/Provider/Opchatgpts.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@


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(
Expand Down
5 changes: 3 additions & 2 deletions g4f/Provider/Vercel.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@

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(
Expand Down
5 changes: 3 additions & 2 deletions g4f/Provider/Ylokh.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@
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


Expand Down
1 change: 0 additions & 1 deletion g4f/Provider/You.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
class You(AsyncGeneratorProvider):
url = "https://you.com"
working = True
supports_message_history = True
supports_gpt_35_turbo = True


Expand Down
1 change: 0 additions & 1 deletion g4f/Provider/Yqcloud.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
class Yqcloud(AsyncGeneratorProvider):
url = "https://chat9.yqcloud.top/"
working = True
supports_message_history = True
supports_gpt_35_turbo = True

@staticmethod
Expand Down
4 changes: 2 additions & 2 deletions g4f/Provider/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
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
Expand Down Expand Up @@ -111,7 +111,7 @@ class ProviderUtils:
'Ylokh': Ylokh,
'You': You,
'Yqcloud': Yqcloud,
'Geekgpt': GeekGpt,
'GeekGpt': GeekGpt,

'BaseProvider': BaseProvider,
'AsyncProvider': AsyncProvider,
Expand Down

0 comments on commit af17c23

Please sign in to comment.