alpha
Login
or
Join now
hotsocket.fyi
/
niri
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
This repository has no description
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Overview
Issues
Pulls
Pipelines
thinking
author
nekomimi.pet
date
1 month ago
(May 29, 2026, 9:50 AM -0400)
commit
7f1f8832
7f1f8832fe2f23e4df3d2c446f67906894d3c423
parent
dcda0d97
dcda0d973b628b1df84d80d2346c5d69a51e8df6
+6
-1
1 changed file
Expand all
Collapse all
Unified
Split
src
runner
anthropic.ts
+6
-1
src/runner/anthropic.ts
View file
Reviewed
···
431
431
432
432
if (request.tools.length > 0 && request.tool_choice !== "none") {
433
433
body.tools = toAnthropicTools(request.tools)
434
434
-
const tc = toAnthropicToolChoice(request.tool_choice)
434
434
+
let tc = toAnthropicToolChoice(request.tool_choice)
435
435
+
// Anthropic rejects tool_choice 'any' when thinking is enabled.
436
436
+
if (tc && (tc as unknown as { type: string }).type === "any" && ENABLE_THINKING) {
437
437
+
console.warn("[anthropic] tool_choice='any' is incompatible with thinking; downgrading to 'auto'")
438
438
+
tc = { type: "auto" }
439
439
+
}
435
440
if (tc) body.tool_choice = tc
436
441
}
437
442