opencode-pollinations-plugin 5.3.2 → 5.3.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.
@@ -301,11 +301,10 @@ export async function handleChatCompletion(req, res, bodyRaw) {
301
301
  proxyBody.private = true;
302
302
  if (proxyBody.stream_options)
303
303
  delete proxyBody.stream_options;
304
- // 3.6 STOP SEQUENCES (Prevent Looping - CRITICAL FIX)
305
- // Inject explicit stop sequences to prevent "User:" hallucinations
306
- if (!proxyBody.stop) {
307
- proxyBody.stop = ["\nUser:", "\nModel:", "User:", "Model:"];
308
- }
304
+ // 3.6 STOP SEQUENCES (-REMOVED-)
305
+ // We do NOT inject 'stop' automatically anymore.
306
+ // Azure OpenAI strictly rejects 'stop' for many models (o1, etc) and throws 400.
307
+ // We rely on the upstream model to handle stops, or the client to send it if needed.
309
308
  // 3.5 PREPARE SIGNATURE HASHING
310
309
  let currentRequestHash = null;
311
310
  if (proxyBody.messages && proxyBody.messages.length > 0) {
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.2",
4
+ "version": "5.3.4",
5
5
  "description": "Native Pollinations.ai Provider Plugin for OpenCode",
6
6
  "publisher": "pollinations",
7
7
  "repository": {