MCPcopy Create free account
hub / github.com/arctic-cli/interface / isModelValid

Function isModelValid

packages/arctic/src/cli/cmd/tui/context/local.tsx:26–29  ·  view source on GitHub ↗
(model: { providerID: string; modelID: string })

Source from the content-addressed store, hash-verified

24 const toast = useToast()
25
26 function isModelValid(model: { providerID: string; modelID: string }) {
27 const provider = sync.data.provider.find((x) => x.id === model.providerID)
28 return !!provider?.models[model.modelID]
29 }
30
31 function getFirstValidModel(...modelFns: (() => { providerID: string; modelID: string } | undefined)[]) {
32 for (const modelFn of modelFns) {

Callers 5

getFirstValidModelFunction · 0.85
local.tsxFile · 0.85
cycleFavoriteFunction · 0.85
setFunction · 0.85
toggleFavoriteFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected