From 5ad48d9181c0759940c1126f3ba43117298fb5cd Mon Sep 17 00:00:00 2001 From: razrab Date: Wed, 25 Oct 2023 13:04:34 +0300 Subject: Extract keywords from incorrect responses The text of error responses is dynamically created by LLM. Need determine by keywords for more precise identification. --- g4f/Provider/ChatBase.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'g4f/Provider/ChatBase.py') diff --git a/g4f/Provider/ChatBase.py b/g4f/Provider/ChatBase.py index 7190e617..7a2e2ff8 100644 --- a/g4f/Provider/ChatBase.py +++ b/g4f/Provider/ChatBase.py @@ -10,8 +10,8 @@ class ChatBase(AsyncGeneratorProvider): url = "https://www.chatbase.co" supports_gpt_35_turbo = True working = True - list_incorrect_responses = ["Hmm, I am not sure. Email support@chatbase.co for more info.", - "I can only provide support and information about Chatbase"] + list_incorrect_responses = ["support@chatbase", + "about Chatbase"] @classmethod async def create_async_generator( @@ -60,4 +60,4 @@ class ChatBase(AsyncGeneratorProvider): ("stream", "bool"), ] param = ", ".join([": ".join(p) for p in params]) - return f"g4f.provider.{cls.__name__} supports: ({param})" \ No newline at end of file + return f"g4f.provider.{cls.__name__} supports: ({param})" -- cgit v1.2.3