MCPcopy Create free account
hub / github.com/anomalyco/models.dev / resultSubtitle

Function resultSubtitle

packages/web/src/index.ts:299–303  ·  view source on GitHub ↗
(item: SearchIndexItem)

Source from the content-addressed store, hash-verified

297}
298
299function resultSubtitle(item: SearchIndexItem) {
300 if (item.type === "model") return item.id;
301 if (item.type === "provider") return item.id;
302 return item.id;
303}
304
305function createSearchResult(result: SearchResult, index: number, query: string) {
306 const { item } = result;

Callers 1

createSearchResultFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected