(model: CatalogModelEntry)
| 66 | } |
| 67 | |
| 68 | function 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 |
no test coverage detected