返回提交历史
Modified
g4f/Provider/PollinationsAI.py
+3
-1
XFEstudio/gpt4free
Update PollinationsAI model retrieval to use new API endpoint with fallback
e09c0896
代码差异
1 个文件
+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