Fix remaining OpenCode review comments

This commit is contained in:
Konan69
2026-03-05 16:07:12 +01:00
parent 69c453b274
commit f4f9d6fd3f
4 changed files with 99 additions and 70 deletions

View File

@@ -12,5 +12,5 @@ export function extractProviderIdWithFallback(modelId: string, fallback = "other
export function extractModelName(modelId: string): string {
const trimmed = modelId.trim();
if (!trimmed.includes("/")) return trimmed;
return trimmed.slice(trimmed.indexOf("/") + 1);
return trimmed.slice(trimmed.indexOf("/") + 1).trim();
}