fix(core): expose azure openai xhigh efforts (#30620)

This commit is contained in:
Aiden Cline
2026-06-03 15:27:23 -05:00
committed by GitHub
parent 11dbd15812
commit 9991a33e3f
2 changed files with 11 additions and 9 deletions

View File

@@ -782,10 +782,7 @@ export function variants(model: Provider.Model): Record<string, Record<string, a
// https://v5.ai-sdk.dev/providers/ai-sdk-providers/azure
if (id === "o1-mini") return {}
return Object.fromEntries(
(GPT5_FAMILY_RE.test(id) && gpt5Version(id) === undefined
? ["minimal", ...WIDELY_SUPPORTED_EFFORTS]
: WIDELY_SUPPORTED_EFFORTS
).map((effort) => [
openaiReasoningEfforts(id, model.release_date).map((effort) => [
effort,
{
reasoningEffort: effort,