mirror of
https://github.com/fosrl/pangolin.git
synced 2026-08-22 12:10:35 +02:00
always require upstream url
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user