XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet
公开
关注 0 Fork 0 Star 1
返回提交历史

XFEstudio/gpt4free

Extract keywords from incorrect responses

The text of error responses is dynamically created by LLM. Need determine by keywords for more precise identification.

5ad48d91
razrab <razrab@PimoLin>
提交于

代码差异

1 个文件 +3 -3
Modified g4f/Provider/ChatBase.py +3 -3
@@ -10,8 +10,8 @@ class ChatBase(AsyncGeneratorProvider):
10 10 url = "https://www.chatbase.co"
11 11 supports_gpt_35_turbo = True
12 12 working = True
13 list_incorrect_responses = ["Hmm, I am not sure. Email support@chatbase.co for more info.",
14 "I can only provide support and information about Chatbase"]
13 list_incorrect_responses = ["support@chatbase",
14 "about Chatbase"]
15 15
16 16 @classmethod
17 17 async def create_async_generator(
@@ -60,4 +60,4 @@ class ChatBase(AsyncGeneratorProvider):
60 60 ("stream", "bool"),
61 61 ]
62 62 param = ", ".join([": ".join(p) for p in params])
63 return f"g4f.provider.{cls.__name__} supports: ({param})"
63 return f"g4f.provider.{cls.__name__} supports: ({param})"