always require upstream url

This commit is contained in:
miloschwartz
2026-08-13 10:07:01 -04:00
parent c35ac493ed
commit 9a551c91e5
5 changed files with 13 additions and 67 deletions
+2 -7
View File
@@ -85,13 +85,8 @@ export function providerRequiresUpstreamUrl(
type: AiProviderType,
routingMode: AiProviderRoutingMode = "url"
): boolean {
if (routingMode === "target") {
return false;
}
if (type === "custom") {
return true;
}
return AI_PROVIDER_DEFAULTS[type].upstreamUrl === null;
const mode = type === "custom" ? routingMode : "url";
return mode !== "target";
}
export function defaultsForProviderType(