MCPcopy Create free account
hub / github.com/coder/coder / isSlashNamespacedAIGatewayModel

Function isSlashNamespacedAIGatewayModel

coderd/x/chatd/model_routing_aibridge.go:103–106  ·  view source on GitHub ↗
(model string)

Source from the content-addressed store, hash-verified

101}
102
103func isSlashNamespacedAIGatewayModel(model string) bool {
104 prefix, suffix, ok := strings.Cut(strings.TrimSpace(model), "/")
105 return ok && strings.TrimSpace(prefix) != "" && strings.TrimSpace(suffix) != ""
106}
107
108func isOpenRouterLikeAIGatewayProvider(provider database.AIProvider) bool {
109 if strings.EqualFold(strings.TrimSpace(provider.Name), "openrouter") {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected