Skip to content

Commit c6e2bdb

Browse files
authored
fix: default tool call streaming to false for google vertex (anomalyco#24573)
1 parent 38324ca commit c6e2bdb

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

packages/opencode/src/provider/transform.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -826,6 +826,10 @@ export function options(input: {
826826
}): Record<string, any> {
827827
const result: Record<string, any> = {}
828828

829+
if (input.model.api.npm === "@ai-sdk/google-vertex/anthropic") {
830+
result["toolStreaming"] = false
831+
}
832+
829833
// openai and providers using openai package should set store to false by default.
830834
if (
831835
input.model.providerID === "openai" ||

0 commit comments

Comments
 (0)