opencode-pollinations-plugin 5.3.9 → 5.4.1

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.
@@ -365,9 +365,9 @@ export async function handleChatCompletion(req, res, bodyRaw) {
365
365
  const name = t.function?.name || t.name;
366
366
  return isFunc && name !== 'google_search';
367
367
  });
368
- // 2. If tools remain, sanitize them and DISABLE grounding
368
+ // 2. Sanitize (Tools Config Removed for Safety)
369
369
  if (proxyBody.tools.length > 0) {
370
- proxyBody.tools_config = { google_search_retrieval: { disable: true } };
370
+ // proxyBody.tools_config = { google_search_retrieval: { disable: true } };
371
371
  proxyBody.tools = sanitizeToolsForVertex(proxyBody.tools);
372
372
  }
373
373
  else {
@@ -378,11 +378,8 @@ export async function handleChatCompletion(req, res, bodyRaw) {
378
378
  delete proxyBody.tools_config;
379
379
  }
380
380
  }
381
- // 4. INJECT STOP SEQUENCES (Fixes "Boucle"/Loop issues) for ALL Gemini requests
382
- // Gemini 2.5/Flash can be chatty or ignore standard stop tokens.
383
- if (!proxyBody.stop) {
384
- proxyBody.stop = ["<|endoftext|>", "User:", "\nUser", "User :", "Model:"];
385
- }
381
+ // 4. STOP SEQUENCES REMOVED (Validation Fix v5.4.0)
382
+ // if (!proxyBody.stop) { ... }
386
383
  log(`[Proxy] Gemini Logic: Tools=${proxyBody.tools ? proxyBody.tools.length : 'REMOVED'}, Stops Injected.`);
387
384
  }
388
385
  }
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.3.9",
4
+ "version": "5.4.1",
5
5
  "description": "Native Pollinations.ai Provider Plugin for OpenCode",
6
6
  "publisher": "pollinations",
7
7
  "repository": {