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
1 changed files with 3 additions and 3 deletions

View File

@ -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})"
return f"g4f.provider.{cls.__name__} supports: ({param})"