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