Skip to content

RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.

fix baidufanyi param error (#3053)

Kevin Hu322bafdf2ab4
diff --git a/agent/component/baidufanyi.py b/agent/component/baidufanyi.py
index 84061a30b0..c1c526bd8a 100644
--- a/agent/component/baidufanyi.py
+++ b/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'])