( openRouterKey: string | null, claudeKey: string | null, openAiKey: string | null )
| 36 | ]; |
| 37 | |
| 38 | export function getAvailableCloudModels( |
| 39 | openRouterKey: string | null, |
| 40 | claudeKey: string | null, |
| 41 | openAiKey: string | null |
| 42 | ): CloudModel[] { |
| 43 | const models: CloudModel[] = []; |
| 44 | if (openRouterKey) models.push(...OPENROUTER_MODELS); |
| 45 | if (claudeKey) models.push(...CLAUDE_MODELS); |
| 46 | if (openAiKey) models.push(...OPENAI_MODELS); |
| 47 | return models; |
| 48 | } |
| 49 | |
| 50 | export function isCloudModel(modelId: string): CloudProvider | null { |
| 51 | for (const m of OPENROUTER_MODELS) { |
nothing calls this directly
no outgoing calls
no test coverage detected