on main help sign in
fix: add io.net api key validation fallback
aa1ea49Andrey Nering
internal/config/config.go+5
@@ -799,6 +799,11 @@ func (c *ProviderConfig) TestConnection(resolver VariableResolver) error {
799 return fmt.Errorf("invalid API key format for provider %s", c.ID)
799 return fmt.Errorf("invalid API key format for provider %s", c.ID)
800 }
800 }
801 return nil
801 return nil
802+ case catwalk.InferenceProviderIoNet:
803+ if !strings.HasPrefix(apiKey, "io-") {
804+ return fmt.Errorf("invalid API key format for provider %s", c.ID)
805+ }
806+ return nil
802 }
807 }
803
808
804 switch c.Type {
809 switch c.Type {