opencode-pollinations-plugin 5.6.0-beta.17 → 5.6.0-beta.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/server/quota.js +3 -0
- package/package.json +1 -1
package/dist/server/quota.js
CHANGED
|
@@ -205,6 +205,9 @@ function calculateCurrentPeriodUsage(usage, resetInfo) {
|
|
|
205
205
|
}
|
|
206
206
|
// === EXPORT POUR LES ALERTES ===
|
|
207
207
|
export function formatQuotaForToast(quota) {
|
|
208
|
+
if (quota.errorType === 'auth_limited') {
|
|
209
|
+
return `🔑 CLE LIMITÉE (Génération Seule) | 💎 Wallet: N/A | ⏰ Reset: N/A`;
|
|
210
|
+
}
|
|
208
211
|
const tierPercent = quota.tierLimit > 0
|
|
209
212
|
? Math.round((quota.tierRemaining / quota.tierLimit) * 100)
|
|
210
213
|
: 0;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "opencode-pollinations-plugin",
|
|
3
3
|
"displayName": "Pollinations AI (V5.1)",
|
|
4
|
-
"version": "5.6.0-beta.
|
|
4
|
+
"version": "5.6.0-beta.18",
|
|
5
5
|
"description": "Native Pollinations.ai Provider Plugin for OpenCode",
|
|
6
6
|
"publisher": "pollinations",
|
|
7
7
|
"repository": {
|