MCPcopy
hub / github.com/janhq/jan / useModelSources.ts

File useModelSources.ts

web-app/src/hooks/useModelSources.ts:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1import { create } from 'zustand'
2import { localStorageKey } from '@/constants/localStorage'
3import { createJSONStorage, persist } from 'zustand/middleware'
4import { getServiceHub } from '@/hooks/useServiceHub'

Callers

nothing calls this directly

Calls 10

getServiceHubFunction · 0.90
sanitizeModelIdFunction · 0.90
createFunction · 0.85
getFunction · 0.85
fetchModelCatalogMethod · 0.65
modelsMethod · 0.65
setFunction · 0.50
thenMethod · 0.45
filterMethod · 0.45
mapMethod · 0.45

Tested by

no test coverage detected