MCPcopy Create free account
hub / github.com/altic-dev/Pilot / isProviderValid

Function isProviderValid

src/lib/model-provider.ts:68–72  ·  view source on GitHub ↗
(provider: string)

Source from the content-addressed store, hash-verified

66 * Validate that the selected provider is available
67 */
68export function isProviderValid(provider: string): provider is ModelProvider {
69 return (
70 provider === "sonnet" || provider === "lmstudio" || provider === "groq" || provider === "haiku"
71 );
72}
73
74/**
75 * Health check for LM Studio (optional, for future use)

Callers 3

HomeFunction · 0.90
ChatContentFunction · 0.90
POSTFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected