From 7326bef35104a2b47ea57950f33747c2226acc96 Mon Sep 17 00:00:00 2001 From: Javier Ardila Date: Mon, 13 Apr 2026 17:17:29 +0200 Subject: [PATCH] fix: process combo models properly when returned as objects instead of strings --- src/omniroute-combos.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/omniroute-combos.ts b/src/omniroute-combos.ts index 617702f..bbffbb1 100644 --- a/src/omniroute-combos.ts +++ b/src/omniroute-combos.ts @@ -139,7 +139,7 @@ export async function resolveUnderlyingModels( const combo = combos.get(modelId); if (combo) { console.log(`[OmniRoute] Resolved combo "${modelId}" to ${combo.models.length} underlying models`); - return combo.models; + return combo.models.map((m: any) => typeof m === 'string' ? m : (m.model || m.id)); } // Not a combo, return as-is