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

XFEstudio/gpt4free

FIX: Bug fix for flux-pro aka flux-schnell

https://api.airforce/imagine2?model=flux-4o https://api.airforce/imagine2?model=flux-schnell and https://api.airforce/imagine2?model=flux-1.1-pro all generate same images but "Flux-1.1-Pro" doesnt work

30b97076
TrueSaiyan <ufperth@protonmail.com>
提交于

代码差异

1 个文件 +2 -2
Modified g4f/Provider/Airforce.py +2 -2
@@ -36,7 +36,7 @@ class Airforce(AsyncGeneratorProvider, ProviderModelMixin):
36 36
37 37 default_model = "gpt-4o-mini"
38 38 default_image_model = "flux"
39 additional_models_imagine = ["stable-diffusion-xl-base", "stable-diffusion-xl-lightning", "Flux-1.1-Pro"]
39 additional_models_imagine = ["stable-diffusion-xl-base", "stable-diffusion-xl-lightning", "flux-1.1-pro"]
40 40
41 41 @classmethod
42 42 def get_models(cls):
@@ -86,7 +86,7 @@ class Airforce(AsyncGeneratorProvider, ProviderModelMixin):
86 86 ### imagine ###
87 87 "sdxl": "stable-diffusion-xl-base",
88 88 "sdxl": "stable-diffusion-xl-lightning",
89 "flux-pro": "Flux-1.1-Pro",
89 "flux-pro": "flux-1.1-pro",
90 90 }
91 91
92 92 @classmethod