Skip to content

Commit c361c29

Browse files
authored
fix: ensure toolStreaming is set to off by default when using non anthropic models with anthropic sdk (anomalyco#24642)
1 parent ccb7669 commit c361c29

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

packages/opencode/src/provider/transform.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -847,7 +847,10 @@ export function options(input: {
847847
}): Record<string, any> {
848848
const result: Record<string, any> = {}
849849

850-
if (input.model.api.npm === "@ai-sdk/google-vertex/anthropic") {
850+
if (
851+
input.model.api.npm === "@ai-sdk/google-vertex/anthropic" ||
852+
(!input.model.api.id.includes("claude") && input.model.api.npm === "@ai-sdk/anthropic")
853+
) {
851854
result["toolStreaming"] = false
852855
}
853856

0 commit comments

Comments
 (0)