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

XFEstudio/gpt4free

fix: update provider status and fix line ending issues

- Mark FreeRouter provider as not working by changing working=True to working=False - Fix line ending issues in DuckDuckGo.py and LMArenaProvider.py by ensuring proper newline at end of file

0344571b
kqlio67 <kqlio67.noreply.github.com>
提交于

代码差异

3 个文件 +3 -3
Modified g4f/Provider/DuckDuckGo.py +1 -1
@@ -48,4 +48,4 @@ class DuckDuckGo(AbstractProvider, ProviderModelMixin):
48 48 if cls.duck_ai is None:
49 49 cls.duck_ai = DuckAI(proxy=proxy, timeout=timeout)
50 50 model = cls.get_model(model)
51 yield cls.duck_ai.chat(get_last_user_message(messages), model, timeout)
51 yield cls.duck_ai.chat(get_last_user_message(messages), model, timeout)
Modified g4f/Provider/LMArenaProvider.py +1 -1
@@ -368,4 +368,4 @@ class LMArenaProvider(AsyncGeneratorProvider, ProviderModelMixin, AuthFileMixin)
368 368 if return_conversation:
369 369 yield conversation
370 370 if count == max_tokens:
371 yield FinishReason("length")
371 yield FinishReason("length")
Modified g4f/Provider/not_working/FreeRouter.py +1 -1
@@ -6,4 +6,4 @@ class FreeRouter(OpenaiTemplate):
6 6 label = "CablyAI FreeRouter"
7 7 url = "https://freerouter.cablyai.com"
8 8 api_base = "https://freerouter.cablyai.com/v1"
9 working = True
9 working = False