fix(provider): align Anthropic Opus 4.5 efforts (#26275)

This commit is contained in:
Kit Langton
2026-05-08 00:06:07 -04:00
committed by GitHub
parent 319498e2fd
commit e0396b809a
2 changed files with 48 additions and 47 deletions

View File

@@ -811,6 +811,10 @@ export function variants(model: Provider.Model): Record<string, Record<string, a
)
}
if (["opus-4-5", "opus-4.5"].some((v) => model.api.id.includes(v))) {
return Object.fromEntries(WIDELY_SUPPORTED_EFFORTS.map((effort) => [effort, { effort }]))
}
return {
high: {
thinking: {