返回提交历史
Modified
g4f/Provider/PollinationsAI.py
+2
-2
XFEstudio/gpt4free
Update PollinationsAI.py
5e0814b5
代码差异
1 个文件
+2
-2
@@ -30,7 +30,7 @@ from .template.OpenaiTemplate import read_response
30
30
from .. import debug
31
31
32
32
class PollinationsAI(AsyncGeneratorProvider, ProviderModelMixin):
33
label = "Pollinations AI 🌸"
33
label = "Pollinations 🌸"
34
34
url = "https://pollinations.ai"
35
35
login_url = "https://enter.pollinations.ai"
36
36
active_by_default = True
@@ -85,7 +85,7 @@ class PollinationsAI(AsyncGeneratorProvider, ProviderModelMixin):
85
85
response.raise_for_status()
86
86
data = response.json()
87
87
cls.balance = float(data.get("balance", 0.0))
88
debug.log(f"Pollinations AI balance: {cls.balance:.2f} Pollen")
88
debug.log(f"Pollinations balance: {cls.balance:.2f} Pollen")
89
89
return cls.balance
90
90
except Exception as e:
91
91
debug.error(f"Failed to get balance:", e)