mirror of
https://github.com/xtekky/gpt4free.git
synced 2024-09-12 08:29:30 -04:00
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"
|
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})"
|
||||||
|
Loading…
Reference in New Issue
Block a user