Extract keywords from incorrect responses

The text of error responses is dynamically created by LLM. Need determine by keywords for more precise identification.
This commit is contained in:
razrab 2023-10-25 13:04:34 +03:00
parent ebbc602184
commit 5ad48d9181

View File

@ -10,8 +10,8 @@ class ChatBase(AsyncGeneratorProvider):
url = "https://www.chatbase.co" url = "https://www.chatbase.co"
supports_gpt_35_turbo = True supports_gpt_35_turbo = True
working = True working = True
list_incorrect_responses = ["Hmm, I am not sure. Email support@chatbase.co for more info.", list_incorrect_responses = ["support@chatbase",
"I can only provide support and information about Chatbase"] "about Chatbase"]
@classmethod @classmethod
async def create_async_generator( async def create_async_generator(
@ -60,4 +60,4 @@ class ChatBase(AsyncGeneratorProvider):
("stream", "bool"), ("stream", "bool"),
] ]
param = ", ".join([": ".join(p) for p in params]) param = ", ".join([": ".join(p) for p in params])
return f"g4f.provider.{cls.__name__} supports: ({param})" return f"g4f.provider.{cls.__name__} supports: ({param})"