opencode-pollinations-plugin 5.4.15 → 5.4.16
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 +1 -1
- package/dist/server/config.js +6 -4
- package/package.json +1 -1
package/dist/server/commands.js
CHANGED
|
@@ -226,7 +226,7 @@ async function handleConnectCommand(args) {
|
|
|
226
226
|
const enterpriseModels = models.filter(m => m.id.startsWith('enter/'));
|
|
227
227
|
if (enterpriseModels.length > 0) {
|
|
228
228
|
// SUCCESS
|
|
229
|
-
saveConfig({ apiKey: key
|
|
229
|
+
saveConfig({ apiKey: key }); // Don't force mode 'pro'. Let user decide.
|
|
230
230
|
const masked = key.substring(0, 6) + '...';
|
|
231
231
|
// Count Paid Only models found
|
|
232
232
|
const diamondCount = enterpriseModels.filter(m => m.name.includes('💎')).length;
|
package/dist/server/config.js
CHANGED
|
@@ -128,14 +128,16 @@ function readConfigFromDisk() {
|
|
|
128
128
|
// 4. APPLY
|
|
129
129
|
if (finalKey) {
|
|
130
130
|
config.apiKey = finalKey;
|
|
131
|
-
config.mode = 'pro';
|
|
132
|
-
// logConfig(`Loaded Key from ${source}`); // Debug
|
|
131
|
+
// config.mode = 'pro'; // REMOVED: Mode is decoupled from Key presence.
|
|
133
132
|
}
|
|
134
133
|
else {
|
|
135
134
|
// Ensure no phantom key remains
|
|
136
135
|
delete config.apiKey;
|
|
137
|
-
if (config.mode === 'pro')
|
|
138
|
-
|
|
136
|
+
// if (config.mode === 'pro') config.mode = 'manual'; // OPTIONAL: Downgrade if no key? User says "No link".
|
|
137
|
+
// Actually, if I am in PRO mode and lose my key, I am broken. Falling back to manual is safer?
|
|
138
|
+
// User said "Manual mode is like standard API".
|
|
139
|
+
// Let's REMOVE this auto-downgrade too to be strictly "Decoupled".
|
|
140
|
+
// If user is in PRO without key, they get "Missing Key" error, which is correct.
|
|
139
141
|
}
|
|
140
142
|
return { ...config, version: PKG_VERSION };
|
|
141
143
|
}
|
package/package.json
CHANGED