opencode-pollinations-plugin 5.3.9 → 5.4.0
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 +4 -7
- package/package.json +1 -1
package/dist/server/proxy.js
CHANGED
|
@@ -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.
|
|
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.
|
|
382
|
-
//
|
|
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