naiad-cli 0.2.6 → 0.2.7
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.
|
@@ -184,6 +184,14 @@ export default function (pi: ExtensionAPI) {
|
|
|
184
184
|
if (tools) {
|
|
185
185
|
body.tools = tools;
|
|
186
186
|
}
|
|
187
|
+
// Map pi's thinking level to OpenRouter's reasoning_effort.
|
|
188
|
+
// "xhigh" is clamped to "high" (OpenRouter only supports low/medium/high).
|
|
189
|
+
if (options?.reasoning) {
|
|
190
|
+
const effort = options.reasoning === "xhigh" ? "high"
|
|
191
|
+
: options.reasoning === "minimal" ? "low"
|
|
192
|
+
: options.reasoning; // low | medium | high pass through
|
|
193
|
+
body.reasoning_effort = effort;
|
|
194
|
+
}
|
|
187
195
|
|
|
188
196
|
const res = await fetch(`${inferenceUrl}/v1/chat/completions`, {
|
|
189
197
|
method: "POST",
|