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

File useModelProvider.ts

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 15

isLocalProviderFunction · 0.90
getServiceHubFunction · 0.90
parseApiKeyFallbacksFunction · 0.90
serializeApiKeyFallbacksFunction · 0.90
createFunction · 0.85
getFunction · 0.85
joinMethod · 0.65
sepMethod · 0.65
pathMethod · 0.65
providersMethod · 0.65
updateSettingsMethod · 0.65
setFunction · 0.50

Tested by

no test coverage detected