@juspay/neurolink 12.43.1 → 12.43.2
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.
|
@@ -356,10 +356,22 @@ function fitRequestToTarget(payload, targetModel) {
|
|
|
356
356
|
logger.warn(`[vertex-anthropic] ${targetModel} rejects tool_choice "${choice.type}"; sending "auto" instead`);
|
|
357
357
|
}
|
|
358
358
|
const thinking = payload.thinking;
|
|
359
|
-
if (record(thinking) &&
|
|
359
|
+
if (record(thinking) &&
|
|
360
|
+
thinking.type === "enabled" &&
|
|
361
|
+
targetModel === "claude-sonnet-5-5") {
|
|
362
|
+
// Sonnet 5.5 rejects fixed thinking budgets. Keep the requested display,
|
|
363
|
+
// but use its adaptive mode; a fixed token budget has no Vertex equivalent.
|
|
364
|
+
payload.thinking = {
|
|
365
|
+
type: "adaptive",
|
|
366
|
+
...(thinking.display !== undefined ? { display: thinking.display } : {}),
|
|
367
|
+
};
|
|
368
|
+
logger.warn(`[vertex-anthropic] ${targetModel} rejects thinking "enabled"; sending adaptive without a fixed budget`);
|
|
369
|
+
}
|
|
370
|
+
const targetThinking = payload.thinking;
|
|
371
|
+
if (record(targetThinking) && targetThinking.display === "updates") {
|
|
360
372
|
// Claude Code requests live thinking updates, but Vertex accepts only
|
|
361
373
|
// summarized or omitted adaptive thinking display.
|
|
362
|
-
payload.thinking = { ...
|
|
374
|
+
payload.thinking = { ...targetThinking, display: "summarized" };
|
|
363
375
|
}
|
|
364
376
|
if (record(thinking) && thinking.type === "disabled") {
|
|
365
377
|
const outputConfig = payload.output_config;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@juspay/neurolink",
|
|
3
|
-
"version": "12.43.
|
|
3
|
+
"version": "12.43.2",
|
|
4
4
|
"packageManager": "pnpm@10.15.1",
|
|
5
5
|
"description": "The pipe layer of an AI nervous system: one interface connecting provider neurons to your application, across three inference types — generate, stream and decide. `decide` returns typed, calibrated judgements from a non-generative model (~400ms, ~$0.00002/call) for routing, tool selection and context budgeting. MCP-native (4 transports), voice TTS/STT/realtime, RAG, agents, memory, compaction, 9 observability exporters. OpenAI · Anthropic · Gemini · Bedrock · Azure · Ollama · TypeSafe Jev and more.",
|
|
6
6
|
"author": {
|