(provider string)
| 44 | } |
| 45 | |
| 46 | func llmProviderProfileFor(provider string) llmProviderProfile { |
| 47 | switch normalizeLLMProvider(provider) { |
| 48 | case LLMProviderGitHub: |
| 49 | return llmProviderProfile{ |
| 50 | id: LLMProviderGitHub, |
| 51 | gatewayPort: constants.CopilotLLMGatewayPort, |
| 52 | } |
| 53 | case LLMProviderOpenAI: |
| 54 | return llmProviderProfile{ |
| 55 | id: LLMProviderOpenAI, |
| 56 | gatewayPort: constants.CodexLLMGatewayPort, |
| 57 | } |
| 58 | default: |
| 59 | return llmProviderProfile{ |
| 60 | id: LLMProviderAnthropic, |
| 61 | gatewayPort: constants.ClaudeLLMGatewayPort, |
| 62 | } |
| 63 | } |
| 64 | } |
| 65 | |
| 66 | func llmProviderSecretNames(provider string) []string { |
| 67 | switch normalizeLLMProvider(provider) { |
no test coverage detected