fix: remove minimax api key validate (#2688)
MiniMax API keys don't always follow the "sk-" prefix pattern,
so the validation was causing unnecessary errors for valid keys.
Co-authored-by: Andrey Nering <andreynering@users.noreply.github.com>
commitcce8edf9a216337cca46c6457f9ab208c48babd1
authorflynn-eye <939649107@qq.com>
dateThu 23 Apr 2026, 21:00 (6 months ago)
parentb8eccf9
internal/config/config.go−4
@@ -550,10 +550,6 @@ func (c *ProviderConfig) TestConnection(resolver VariableResolver) error {
550550 switch providerID {
551551 case catwalk.InferenceProviderMiniMax, catwalk.InferenceProviderMiniMaxChina:
552552 // NOTE: MiniMax has no good endpoint we can use to validate the API key.
553− // Let's at least check the pattern.
554− if !strings.HasPrefix(apiKey, "sk-") {
555− return fmt.Errorf("invalid API key format for provider %s", c.ID)
556− }
557553 return nil
558554 }
559555