opencode-pollinations-plugin 5.4.8-debug.3 → 5.4.8-debug.4
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/proxy.js +2 -1
- package/package.json +1 -1
package/dist/server/proxy.js
CHANGED
|
@@ -466,7 +466,8 @@ export async function handleChatCompletion(req, res, bodyRaw) {
|
|
|
466
466
|
// 2. Gemini Tools Fix (Gemini + Tools -> 401 -> Fallback to OpenAI)
|
|
467
467
|
const isEnterpriseFallback = (fetchRes.status === 402 || fetchRes.status === 429 || fetchRes.status === 401 || fetchRes.status === 403) && isEnterprise;
|
|
468
468
|
const isGeminiToolsFallback = fetchRes.status === 401 && actualModel.includes('gemini') && !isEnterprise && proxyBody.tools && proxyBody.tools.length > 0;
|
|
469
|
-
|
|
469
|
+
// STRICT MANUAL MODE: Disable "Magic" Fallbacks
|
|
470
|
+
if ((isEnterpriseFallback || isGeminiToolsFallback) && config.mode !== 'manual') {
|
|
470
471
|
log(`[SafetyNet] Upstream Rejection (${fetchRes.status}). Triggering Transparent Fallback.`);
|
|
471
472
|
if (isEnterpriseFallback) {
|
|
472
473
|
// 1a. Enterprise -> Free Fallback
|
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.4.8-debug.
|
|
4
|
+
"version": "5.4.8-debug.4",
|
|
5
5
|
"description": "Native Pollinations.ai Provider Plugin for OpenCode",
|
|
6
6
|
"publisher": "pollinations",
|
|
7
7
|
"repository": {
|