| 7 | } from '../shared/pi-ai-model-cost'; |
| 8 | |
| 9 | export 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 | |
| 19 | export function getModelIdFromRef(modelRef: string | undefined, providerKey: string): string | undefined { |
| 20 | if (!modelRef) return undefined; |
nothing calls this directly
no outgoing calls
no test coverage detected