Skip to content

Commit 2834bf7

Browse files
committed
fix: openrouter key validation
1 parent b8edb71 commit 2834bf7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/config/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -546,7 +546,7 @@ func (c *ProviderConfig) TestConnection(resolver VariableResolver) error {
546546
headers := make(map[string]string)
547547
apiKey, _ := resolver.ResolveValue(c.APIKey)
548548
switch c.Type {
549-
case catwalk.TypeOpenAI, catwalk.TypeOpenAICompat:
549+
case catwalk.TypeOpenAI, catwalk.TypeOpenAICompat, catwalk.TypeOpenRouter:
550550
baseURL, _ := resolver.ResolveValue(c.BaseURL)
551551
if baseURL == "" {
552552
baseURL = "https://api.openai.com/v1"

0 commit comments

Comments
 (0)