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

XFEstudio/gpt4free

Fixing errors in g4f/Provider/Nexra.py

f13557f7
kqlio67 <kqlio67@users.noreply.github.com>
提交于

代码差异

1 个文件 +1 -4
Modified g4f/Provider/Nexra.py +1 -4
@@ -56,17 +56,14 @@ class Nexra(AsyncGeneratorProvider, ProviderModelMixin):
56 56 "dalle-2": "dalle2",
57 57 }
58 58
59
60 59 @classmethod
61 60 def get_model(cls, model: str) -> str:
62 61 if model in cls.text_models or model in cls.image_models:
63 62 return model
64 63 elif model in cls.model_aliases:
65 64 return cls.model_aliases[model]
66 elif model in cls.image_models:
67 return cls.default_image_model
68 65 else:
69 return cls.default_chat_model
66 return cls.default_model
70 67
71 68 @classmethod
72 69 async def create_async_generator(