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

Function providerSubject

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

Source from the content-addressed store, hash-verified

118}
119
120func providerSubject(provider string) string {
121 if displayName := providerDisplayName(provider); displayName != "AI" && displayName != "" {
122 return displayName
123 }
124 return "the AI provider"
125}
126
127func providerDisplayName(provider string) string {
128 switch normalizeProvider(provider) {

Callers 3

terminalMessageFunction · 0.85
retryMessageFunction · 0.85
streamIncompleteMessageFunction · 0.85

Calls 1

providerDisplayNameFunction · 0.85

Tested by

no test coverage detected