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

Function isGatewayProvider

coderd/x/chatd/chatprovider/chatprovider.go:605–614  ·  view source on GitHub ↗

isGatewayProvider reports whether the provider routes requests to multiple upstream model providers using a " / " model identifier, where the slash is part of the upstream model ID rather than a hint.

(provider string)

Source from the content-addressed store, hash-verified

603// identifier, where the slash is part of the upstream model ID rather
604// than a hint.
605func isGatewayProvider(provider string) bool {
606 switch provider {
607 case fantasyvercel.Name,
608 fantasyopenrouter.Name,
609 fantasyopenaicompat.Name:
610 return true
611 default:
612 return false
613 }
614}
615
616// NormalizeProvider canonicalizes a provider name.
617func NormalizeProvider(provider string) string {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected