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.
- package/dist/server/proxy.js +4 -5
- package/package.json +1 -1
package/dist/server/proxy.js
CHANGED
|
@@ -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 (
|
|
305
|
-
//
|
|
306
|
-
|
|
307
|
-
|
|
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