mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-10 20:40:36 +00:00
fix: ensure toolStreaming is set to off by default when using non anthropic models with anthropic sdk (#24642)
This commit is contained in:
parent
ccb7669736
commit
c361c2953f
1 changed files with 4 additions and 1 deletions
|
|
@ -847,7 +847,10 @@ export function options(input: {
|
|||
}): Record<string, any> {
|
||||
const result: Record<string, any> = {}
|
||||
|
||||
if (input.model.api.npm === "@ai-sdk/google-vertex/anthropic") {
|
||||
if (
|
||||
input.model.api.npm === "@ai-sdk/google-vertex/anthropic" ||
|
||||
(!input.model.api.id.includes("claude") && input.model.api.npm === "@ai-sdk/anthropic")
|
||||
) {
|
||||
result["toolStreaming"] = false
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue