190proof 1.0.116 → 1.0.118
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/README.md +1 -1
- package/dist/index.d.mts +12 -5
- package/dist/index.d.ts +12 -5
- package/dist/index.js +6 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1377,7 +1377,12 @@ function prepareOpenRouterPayload(payload) {
|
|
|
1377
1377
|
})),
|
|
1378
1378
|
tool_choice: payload.function_call ? typeof payload.function_call === "string" ? payload.function_call : { type: "function", function: payload.function_call } : void 0,
|
|
1379
1379
|
temperature: payload.temperature,
|
|
1380
|
-
provider: payload.provider
|
|
1380
|
+
provider: payload.provider,
|
|
1381
|
+
// Nested form is OpenRouter's canonical param and the only one that
|
|
1382
|
+
// accepts "max" (flat reasoning_effort rejects it — OpenAI enum tops out
|
|
1383
|
+
// at xhigh, and measured on gpt-5.6-luna nested max buys more reasoning
|
|
1384
|
+
// tokens than xhigh despite the docs calling them equivalent).
|
|
1385
|
+
reasoning: payload.reasoningEffort ? { effort: payload.reasoningEffort } : void 0
|
|
1381
1386
|
};
|
|
1382
1387
|
}
|
|
1383
1388
|
var DSML_ENVELOPE_RE = /<|+DSML|+tool_calls>/;
|