MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / isUsableChatModel

Function isUsableChatModel

packages/kosong/src/catalog.ts:68–76  ·  view source on GitHub ↗
(model: CatalogModelEntry)

Source from the content-addressed store, hash-verified

66}
67
68function isUsableChatModel(model: CatalogModelEntry): boolean {
69 const outputModalities = model.modalities?.output;
70 if (outputModalities !== undefined && !outputModalities.includes('text')) return false;
71 return (
72 !hasEmbeddingMarker(model.family) &&
73 !hasEmbeddingMarker(model.id) &&
74 !hasEmbeddingMarker(model.name)
75 );
76}
77
78/**
79 * Resolves a catalog provider entry to a supported wire type. Honors an

Callers 1

catalogModelToCapabilityFunction · 0.85

Calls 1

hasEmbeddingMarkerFunction · 0.85

Tested by

no test coverage detected