Update PollinationsAI login URL and fix response handling in Completions class

This commit is contained in:
hlohaus
2025-12-07 19:32:24 +01:00
parent 5ca011fe43
commit dd08d9e488
2 changed files with 2 additions and 3 deletions

View File

@@ -1,7 +1,6 @@
from __future__ import annotations
import time
import json
import random
import requests
import asyncio
@@ -34,7 +33,7 @@ DEFAULT_HEADERS = {
class PollinationsAI(AsyncGeneratorProvider, ProviderModelMixin):
label = "Pollinations AI 🌸"
url = "https://pollinations.ai"
login_url = "https://auth.pollinations.ai"
login_url = "https://enter.pollinations.ai"
active_by_default = True
working = True
supports_system_message = True

View File

@@ -361,7 +361,7 @@ class Completions:
yield chunk
if stream:
return raw_response(response)
return next(raw_response())
return next(raw_response(response))
if stream:
return fallback(response)
return next(fallback(response))