refactor(core): Skip untagged model configs by their missing kind (no-changelog)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Jaakko Husso 2026-10-16 18:33:42 +03:00
parent 074a125a23
commit 4d9679b048
No known key found for this signature in database

View File

@ -20,7 +20,7 @@ export function withModelName(
const provider = splitModelId(config).provider || 'custom';
return `${provider}/${nameFor(provider)}`;
}
if ('specificationVersion' in config) return undefined;
if (!('kind' in config)) return undefined;
switch (config.kind) {
case 'vertex-anthropic':
return { ...config, id: `google-vertex-anthropic/${nameFor('google-vertex-anthropic')}` };