Skip to content

Commit 95a4178

Browse files
committed
feat: Add support for "none" tool choice in Anthropic translation
1 parent d3d0796 commit 95a4178

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/routes/messages/non-stream-translation.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,9 @@ function translateAnthropicToolChoiceToOpenAI(
156156
}
157157
return undefined
158158
}
159+
case "none": {
160+
return "none"
161+
}
159162
default: {
160163
return undefined
161164
}

0 commit comments

Comments
 (0)