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

XFEstudio/gpt4free

Fix DeepInfra: Model is not supported

40ceb1c0
nullstreak <139914347+nullstreak@users.noreply.github.com>
提交于

代码差异

1 个文件 +2 -1
Modified g4f/Provider/DeepInfra.py +2 -1
@@ -17,7 +17,8 @@ class DeepInfra(AsyncGeneratorProvider, ProviderModelMixin):
17 17 def get_models(cls):
18 18 if not cls.models:
19 19 url = 'https://api.deepinfra.com/models/featured'
20 cls.models = requests.get(url).json()
20 models = requests.get(url).json()
21 cls.models = [model['model_name'] for model in models]
21 22 return cls.models
22 23
23 24 @classmethod