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
-11
View File
@@ -148,17 +148,6 @@ export function emptyUpstreamForType(type: AiProviderType): string {
export function showsUpstreamUrlField(
type: AiProviderType,
routingMode: "url" | "target" | undefined
): boolean {
const mode = type === "custom" ? (routingMode ?? "url") : "url";
if (mode === "target") {
return false;
}
return true;
}
export function upstreamUrlRequired(
type: AiProviderType,
routingMode: "url" | "target" | undefined
): boolean {
const mode = type === "custom" ? (routingMode ?? "url") : "url";
return providerRequiresUpstreamUrl(type, mode);