MCPcopy Create free account
hub / github.com/VPSDance/ai-proxy-rules / loadProvider

Function loadProvider

scripts/data.ts:48–51  ·  view source on GitHub ↗
(inputDir: string, provider: string)

Source from the content-addressed store, hash-verified

46 .optional()
47}).refine((data) => data.rules || data.groups, {
48 message: "Provider must define rules or groups"
49});
50
51export async function loadProvider(inputDir: string, provider: string): Promise<ProviderSource> {
52 const filePath = path.join(inputDir, `${provider}.yaml`);
53 return parseProviderFile(filePath);
54}

Callers 1

selectProvidersFunction · 0.85

Calls 1

parseProviderFileFunction · 0.85

Tested by

no test coverage detected