(slot: ModelSlot | null | undefined, configs: AIServiceConfig[])
| 63 | } |
| 64 | |
| 65 | function resolveSlot(slot: ModelSlot | null | undefined, configs: AIServiceConfig[]): ModelSlot | null { |
| 66 | if (slot && configs.some((c) => c.id === slot.configId)) return slot |
| 67 | const fallback = configs[0] |
| 68 | return fallback ? { configId: fallback.id, modelId: fallback.model || '' } : null |
| 69 | } |
| 70 | |
| 71 | function getAuthProfile(config: AIServiceConfig): string | undefined { |
| 72 | return (config as unknown as Record<string, unknown>).authProfile as string | undefined |
no outgoing calls
no test coverage detected