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

XFEstudio/gpt4free

Add FenayAI provider

2c3a437c
hlohaus <983577+hlohaus@users.noreply.github.com>
提交于

代码差异

2 个文件 +17 -0
Added g4f/Provider/needs_auth/FenayAI.py +16 -0
@@ -0,0 +1,16 @@
1 from __future__ import annotations
2
3 from ..template import OpenaiTemplate
4 from ...config import DEFAULT_MODEL
5
6 class FenayAI(OpenaiTemplate):
7 url = "https://fenayai.com"
8 login_url = "https://fenayai.com/dashboard"
9 api_base = "https://fenayai.com/v1"
10 working = True
11 needs_auth = True
12 default_model = DEFAULT_MODEL.split("/")[-1]
13
14 @classmethod
15 def get_model(cls, model: str, **kwargs) -> str:
16 return super().get_model(model.split("/")[-1], **kwargs)
Modified g4f/Provider/needs_auth/__init__.py +1 -0
@@ -10,6 +10,7 @@ from .Custom import Feature
10 10 from .DeepInfra import DeepInfra
11 11 from .DeepSeek import DeepSeek
12 12 from .DeepSeekAPI import DeepSeekAPI
13 from .FenayAI import FenayAI
13 14 from .Gemini import Gemini
14 15 from .GeminiPro import GeminiPro
15 16 from .GeminiCLI import GeminiCLI