diff --git a/lib/ai/model-runtime.ts b/lib/ai/model-runtime.ts index 69d4bcef9..374105cf0 100644 --- a/lib/ai/model-runtime.ts +++ b/lib/ai/model-runtime.ts @@ -8,15 +8,6 @@ interface ResolveModelRuntimeIdOptions { providerType?: string | null; } -function fallbackRuxaRuntimeId(modelId: string) { - if (!modelId.startsWith("google/")) { - return modelId; - } - - const candidate = modelId.slice("google/".length).trim(); - return candidate || modelId; -} - function toRecord(value: unknown): Record | null { if (typeof value !== "object" || value === null || Array.isArray(value)) { return null; @@ -46,9 +37,5 @@ export function resolveModelRuntimeId( } const resolvedModelId = normalizeRuntimeModelId(model?.modelId) || ""; - if (options?.providerType === "ruxa-image") { - return fallbackRuxaRuntimeId(resolvedModelId); - } - return resolvedModelId; }