mirror of
https://github.com/alibaba/higress.git
synced 2026-05-21 19:27:28 +08:00
fix: baidu api issue (#1685)
This commit is contained in:
@@ -57,7 +57,7 @@ type deeplResponseTranslation struct {
|
||||
Text string `json:"text"`
|
||||
}
|
||||
|
||||
func (d *deeplProviderInitializer) ValidateConfig(config ProviderConfig) error {
|
||||
func (d *deeplProviderInitializer) ValidateConfig(config *ProviderConfig) error {
|
||||
if config.targetLang == "" {
|
||||
return errors.New("missing targetLang in deepl provider config")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user