fix: baidu api issue (#1685)

This commit is contained in:
Se7en
2025-01-16 21:42:43 +08:00
committed by GitHub
parent 9e418dafd9
commit ba74f4bbb9
28 changed files with 33 additions and 33 deletions

View File

@@ -38,7 +38,7 @@ const (
type minimaxProviderInitializer struct {
}
func (m *minimaxProviderInitializer) ValidateConfig(config ProviderConfig) error {
func (m *minimaxProviderInitializer) ValidateConfig(config *ProviderConfig) error {
// If using the chat completion Pro API, a group ID must be set.
if minimaxApiTypePro == config.minimaxApiType && config.minimaxGroupId == "" {
return errors.New(fmt.Sprintf("missing minimaxGroupId in provider config when minimaxApiType is %s", minimaxApiTypePro))