on main help sign in
fix: proper validate io.net api keys (#2272)
f89a9d8Andrey Nering
internal/config/config.go−5
@@ -799,11 +799,6 @@ 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
807 }
802 }
808
803
809 switch c.Type {
804 switch c.Type {