MCPcopy Create free account
hub / github.com/github/gh-aw / llmProviderProfileFor

Function llmProviderProfileFor

pkg/workflow/llm_provider.go:46–64  ·  view source on GitHub ↗
(provider string)

Source from the content-addressed store, hash-verified

44}
45
46func 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
66func llmProviderSecretNames(provider string) []string {
67 switch normalizeLLMProvider(provider) {

Callers 1

Calls 1

normalizeLLMProviderFunction · 0.85

Tested by

no test coverage detected