MCPcopy Index your code
hub / github.com/coder/coder / normalizeProvider

Function normalizeProvider

coderd/x/chatd/chaterror/message.go:150–160  ·  view source on GitHub ↗
(provider string)

Source from the content-addressed store, hash-verified

148}
149
150func normalizeProvider(provider string) string {
151 normalized := strings.ToLower(strings.TrimSpace(provider))
152 switch normalized {
153 case "azure openai", "azure-openai":
154 return "azure"
155 case "openai compat", "openai compatible", "openai_compat":
156 return "openai-compat"
157 default:
158 return normalized
159 }
160}

Callers 3

providerDisplayNameFunction · 0.70
WithProviderMethod · 0.70
normalizeClassificationFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected