on main help sign in
fix(vercel): fix validation of api keys for vercel (#2415)

Closes #2410

commitefb52db17ed78f68bb7de7c79bd575263292642a authorAndrey Nering <andreynering@users.noreply.github.com> dateMon 16 Mar 2026, 13:02 (7 months ago) parent9a5a510
1 file changed+6
internal/config/config.go+6
internal/config/config.go+6
@@ -593,6 +593,12 @@ func (c *ProviderConfig) TestConnection(resolver VariableResolver) error {
593593 return nil
594594 }
595595 return errors.New("not a valid bedrock api key")
596+ case catwalk.TypeVercel:
597+ // NOTE: Vercel does not validate API keys on the `/models` endpoint.
598+ if strings.HasPrefix(apiKey, "vck_") { // Vercel API keys
599+ return nil
600+ }
601+ return errors.New("not a valid vercel api key")
596602 }
597603
598604 ctx, cancel := context.WithTimeout(context.Background(), 5*time.Second)