瀏覽代碼

fix baidufanyi param error (#3053)

### What problem does this PR solve?

#3052

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
tags/v0.13.0
Kevin Hu 1 年之前
父節點
當前提交
322bafdf2a
沒有連結到貢獻者的電子郵件帳戶。
共有 1 個檔案被更改,包括 0 行新增1 行删除
  1. 0
    1
      agent/component/baidufanyi.py

+ 0
- 1
agent/component/baidufanyi.py 查看文件

@@ -36,7 +36,6 @@ class BaiduFanyiParam(ComponentParamBase):
self.domain = 'finance'

def check(self):
self.check_positive_integer(self.top_n, "Top N")
self.check_empty(self.appid, "BaiduFanyi APPID")
self.check_empty(self.secret_key, "BaiduFanyi Secret Key")
self.check_valid_value(self.trans_type, "Translate type", ['translate', 'fieldtranslate'])

Loading…
取消
儲存