fix: harden model catalog projections
This commit is contained in:
@@ -140,7 +140,7 @@ function buildEmbeddingConfig(rendered: Record<string, unknown>): CanonicalEmbed
|
||||
}
|
||||
const model = requireString(embeddings, "model");
|
||||
return {
|
||||
id: `ollama/${model}`,
|
||||
id: optionalString(embeddings, "id") ?? `ollama/${model}`,
|
||||
model,
|
||||
dimensions: requireNumber(embeddings, "dimensions"),
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user