MCPcopy
hub / github.com/ValueCell-ai/ClawX / AgentProviderUpdatePayload

Interface AgentProviderUpdatePayload

electron/main/provider-model-sync.ts:9–17  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7} from '../shared/pi-ai-model-cost';
8
9export interface AgentProviderUpdatePayload {
10 providerKey: string;
11 entry: {
12 baseUrl: string;
13 api: string;
14 apiKey: string | undefined;
15 models: Array<{ id: string; name: string; cost: PiAiModelCostRates }>;
16 };
17}
18
19export function getModelIdFromRef(modelRef: string | undefined, providerKey: string): string | undefined {
20 if (!modelRef) return undefined;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected