mirror of https://github.com/xtekky/gpt4free.git
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:
parent
ebbc602184
commit
5ad48d9181
|
@ -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})"
|
||||
|
|
Loading…
Reference in New Issue