refactor: simplify provider channel conversions

This commit is contained in:
Peter Steinberger
2026-04-11 01:08:20 +01:00
parent b9ddfa6d90
commit 11b0016e9e
20 changed files with 31 additions and 34 deletions

View File

@@ -73,7 +73,7 @@ export const HUGGINGFACE_MODEL_CATALOG: ModelDefinitionConfig[] = [
];
export function isHuggingfacePolicyLocked(modelRef: string): boolean {
const ref = String(modelRef).trim();
const ref = modelRef.trim();
return HUGGINGFACE_POLICY_SUFFIXES.some((suffix) => ref.endsWith(`:${suffix}`) || ref === suffix);
}