feat: unify installation model catalog
This commit is contained in:
@@ -2,24 +2,15 @@ import type { CanonicalWorkspace, WorkspaceRevision, WorkspaceSummary } from "..
|
||||
|
||||
export function canonicalWorkspaceFixture(
|
||||
id: string,
|
||||
allowed: `${string}/${string}`[] = ["zai/glm-5.2"],
|
||||
defaultModel?: `${string}/${string}`,
|
||||
_allowed: `${string}/${string}`[] = ["zai/glm-5.2"],
|
||||
_defaultModel?: `${string}/${string}`,
|
||||
): CanonicalWorkspace {
|
||||
return {
|
||||
workspace: { schema_version: 3, id, name: id, language: "en" },
|
||||
workspace: { schema_version: 4, id, name: id, language: "en" },
|
||||
dwh: {
|
||||
engine: "postgres", database: "database", schema: "public",
|
||||
supported_transports: ["postgres_direct"],
|
||||
},
|
||||
semantic_index: {
|
||||
vector_store: {
|
||||
engine: "qdrant", collection: id, dimensions: 1024, distance: "cosine",
|
||||
},
|
||||
embedding: {
|
||||
provider: "ollama_internal", model: "qwen3-embedding:0.6b", dimensions: 1024,
|
||||
},
|
||||
},
|
||||
llm_policy: { ...(defaultModel ? { default: defaultModel } : {}), allowed },
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user