fix(ai): unblock release provider tests

This commit is contained in:
Armin Ronacher
2026-06-23 19:57:29 +02:00
parent 86528dd9ee
commit 828493b37c
7 changed files with 25 additions and 32 deletions
+2 -1
View File
@@ -324,6 +324,7 @@ function detectOpenAICompletionsCompat(model: Model<"openai-completions">): Open
const isCloudflareAiGateway = provider === "cloudflare-ai-gateway" || baseUrl.includes("gateway.ai.cloudflare.com");
const isNvidia = provider === "nvidia" || baseUrl.includes("integrate.api.nvidia.com");
const isAntLing = provider === "ant-ling" || baseUrl.includes("api.ant-ling.com");
const isTogetherReasoningOnly = isTogether && TOGETHER_REASONING_ONLY_MODELS.has(model.id);
const isNonStandard =
isNvidia ||
@@ -366,7 +367,7 @@ function detectOpenAICompletionsCompat(model: Model<"openai-completions">): Open
? "deepseek"
: isZai
? "zai"
: isTogether
: isTogether && !isTogetherReasoningOnly
? "together"
: isAntLing
? "ant-ling"