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

XFEstudio/gpt4free

Update PollinationsAI.py

5e0814b5
H Lohaus <hlohaus@users.noreply.github.com>
提交于

代码差异

1 个文件 +2 -2
Modified g4f/Provider/PollinationsAI.py +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)