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

XFEstudio/gpt4free

Update PollinationsAI model retrieval to use new API endpoint with fallback

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

代码差异

1 个文件 +3 -1
Modified g4f/Provider/PollinationsAI.py +3 -1
@@ -125,7 +125,9 @@ class PollinationsAI(AsyncGeneratorProvider, ProviderModelMixin):
125 125
126 126 cls.image_models = image_models
127 127
128 text_response = requests.get("https://text.pollinations.ai/models")
128 text_response = requests.get("https://g4f.dev/api/pollinations.ai/models")
129 if not text_response.ok:
130 text_response = requests.get("https://text.pollinations.ai/models")
129 131 text_response.raise_for_status()
130 132 models = text_response.json()
131 133