opencode-pollinations-plugin 5.6.0-beta.13 → 5.6.0-beta.14
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/commands.js +8 -0
- package/package.json +1 -1
package/dist/server/commands.js
CHANGED
|
@@ -173,6 +173,14 @@ function handleModeCommand(args) {
|
|
|
173
173
|
error: `Mode invalide: ${mode}. Valeurs: manual, alwaysfree, pro`
|
|
174
174
|
};
|
|
175
175
|
}
|
|
176
|
+
const checkConfig = loadConfig();
|
|
177
|
+
// BLOCK LIMITED KEYS from Auto Modes
|
|
178
|
+
if (checkConfig.keyHasAccessToProfile === false && (mode === 'pro' || mode === 'alwaysfree')) {
|
|
179
|
+
return {
|
|
180
|
+
handled: true,
|
|
181
|
+
error: `❌ **Mode Refusé**\nVotre clé API est limitée (pas d'accès au profil/quota).\nVous ne pouvez utiliser que le mode **manual**.`
|
|
182
|
+
};
|
|
183
|
+
}
|
|
176
184
|
saveConfig({ mode: mode });
|
|
177
185
|
const config = loadConfig();
|
|
178
186
|
if (config.gui.status !== 'none') {
|
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.14",
|
|
5
5
|
"description": "Native Pollinations.ai Provider Plugin for OpenCode",
|
|
6
6
|
"publisher": "pollinations",
|
|
7
7
|
"repository": {
|