Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.
Python agentagentic-aiagentic-frameworkagentic-workflowaiautomationclaudedeepseekgenaigptllmlow-codemcpnextjsno-codeopenaipythonskillsworkflow
feat:Provide parameter config for mask_sensitive_info of MiniMax mode… (#4294)
Ever4086f5051c1a
diff --git a/api/core/model_runtime/model_providers/minimax/llm/abab5-chat.yaml b/api/core/model_runtime/model_providers/minimax/llm/abab5-chat.yamlindex e0d81e76cc9..2c1f79e2b77 100644--- a/api/core/model_runtime/model_providers/minimax/llm/abab5-chat.yaml+++ b/api/core/model_runtime/model_providers/minimax/llm/abab5-chat.yaml@@ -18,6 +18,15 @@ parameter_rules:default: 6144min: 1max: 6144+ - name: mask_sensitive_info+ type: boolean+ default: true+ label:+ zh_Hans: 隐私保护+ en_US: Moderate+ help:+ zh_Hans: 对输出中易涉及隐私问题的文本信息进行打码,目前包括但不限于邮箱、域名、链接、证件号、家庭住址等,默认true,即开启打码+ en_US: Mask the sensitive info of the generated content, such as email/domain/link/address/phone/id..- name: presence_penaltyuse_template: presence_penalty- name: frequency_penaltydiff --git a/api/core/model_runtime/model_providers/minimax/llm/abab5.5-chat.yaml b/api/core/model_runtime/model_providers/minimax/llm/abab5.5-chat.yamlindex c0ad1e2fdfd..6d29be0d0e8 100644--- a/api/core/model_runtime/model_providers/minimax/llm/abab5.5-chat.yaml+++ b/api/core/model_runtime/model_providers/minimax/llm/abab5.5-chat.yaml@@ -26,6 +26,15 @@ parameter_rules:default: 6144min: 1max: 16384+ - name: mask_sensitive_info+ type: boolean+ default: true+ label:+ zh_Hans: 隐私保护+ en_US: Moderate+ help:+ zh_Hans: 对输出中易涉及隐私问题的文本信息进行打码,目前包括但不限于邮箱、域名、链接、证件号、家庭住址等,默认true,即开启打码+ en_US: Mask the sensitive info of the generated content, such as email/domain/link/address/phone/id..- name: presence_penaltyuse_template: presence_penalty- name: frequency_penaltydiff --git a/api/core/model_runtime/model_providers/minimax/llm/abab5.5s-chat.yaml b/api/core/model_runtime/model_providers/minimax/llm/abab5.5s-chat.yamlindex 1ef7046459a..aa42bb57395 100644--- a/api/core/model_runtime/model_providers/minimax/llm/abab5.5s-chat.yaml+++ b/api/core/model_runtime/model_providers/minimax/llm/abab5.5s-chat.yaml@@ -24,6 +24,15 @@ parameter_rules:default: 3072min: 1max: 8192+ - name: mask_sensitive_info+ type: boolean+ default: true+ label:+ zh_Hans: 隐私保护+ en_US: Moderate+ help:+ zh_Hans: 对输出中易涉及隐私问题的文本信息进行打码,目前包括但不限于邮箱、域名、链接、证件号、家庭住址等,默认true,即开启打码+ en_US: Mask the sensitive info of the generated content, such as email/domain/link/address/phone/id..- name: presence_penaltyuse_template: presence_penalty- name: frequency_penaltydiff --git a/api/core/model_runtime/model_providers/minimax/llm/abab6-chat.yaml b/api/core/model_runtime/model_providers/minimax/llm/abab6-chat.yamlindex 4c487c598ef..9188b6b53fa 100644--- a/api/core/model_runtime/model_providers/minimax/llm/abab6-chat.yaml+++ b/api/core/model_runtime/model_providers/minimax/llm/abab6-chat.yaml@@ -26,6 +26,15 @@ parameter_rules:default: 2048min: 1max: 32768+ - name: mask_sensitive_info+ type: boolean+ default: true+ label:+ zh_Hans: 隐私保护+ en_US: Moderate+ help:+ zh_Hans: 对输出中易涉及隐私问题的文本信息进行打码,目前包括但不限于邮箱、域名、链接、证件号、家庭住址等,默认true,即开启打码+ en_US: Mask the sensitive info of the generated content, such as email/domain/link/address/phone/id..- name: presence_penaltyuse_template: presence_penalty- name: frequency_penaltydiff --git a/api/core/model_runtime/model_providers/minimax/llm/abab6.5-chat.yaml b/api/core/model_runtime/model_providers/minimax/llm/abab6.5-chat.yamlindex ead61fb7ca8..5d717d5f8cc 100644--- a/api/core/model_runtime/model_providers/minimax/llm/abab6.5-chat.yaml+++ b/api/core/model_runtime/model_providers/minimax/llm/abab6.5-chat.yaml@@ -26,6 +26,15 @@ parameter_rules:default: 2048min: 1max: 8192+ - name: mask_sensitive_info+ type: boolean+ default: true+ label:+ zh_Hans: 隐私保护+ en_US: Moderate+ help:+ zh_Hans: 对输出中易涉及隐私问题的文本信息进行打码,目前包括但不限于邮箱、域名、链接、证件号、家庭住址等,默认true,即开启打码+ en_US: Mask the sensitive info of the generated content, such as email/domain/link/address/phone/id..- name: presence_penaltyuse_template: presence_penalty- name: frequency_penaltydiff --git a/api/core/model_runtime/model_providers/minimax/llm/abab6.5s-chat.yaml b/api/core/model_runtime/model_providers/minimax/llm/abab6.5s-chat.yamlindex 2cd98abb224..4631fe67e44 100644--- a/api/core/model_runtime/model_providers/minimax/llm/abab6.5s-chat.yaml+++ b/api/core/model_runtime/model_providers/minimax/llm/abab6.5s-chat.yaml@@ -26,6 +26,15 @@ parameter_rules:default: 2048min: 1max: 245760+ - name: mask_sensitive_info+ type: boolean+ default: true+ label:+ zh_Hans: 隐私保护+ en_US: Moderate+ help:+ zh_Hans: 对输出中易涉及隐私问题的文本信息进行打码,目前包括但不限于邮箱、域名、链接、证件号、家庭住址等,默认true,即开启打码+ en_US: Mask the sensitive info of the generated content, such as email/domain/link/address/phone/id..- name: presence_penaltyuse_template: presence_penalty- name: frequency_penaltydiff --git a/api/core/model_runtime/model_providers/minimax/llm/chat_completion_pro.py b/api/core/model_runtime/model_providers/minimax/llm/chat_completion_pro.pyindex c7cf997464f..55747057c9f 100644--- a/api/core/model_runtime/model_providers/minimax/llm/chat_completion_pro.py+++ b/api/core/model_runtime/model_providers/minimax/llm/chat_completion_pro.py@@ -43,6 +43,9 @@ class MinimaxChatCompletionPro:if 'top_p' in model_parameters and type(model_parameters['top_p']) == float:extra_kwargs['top_p'] = model_parameters['top_p']+ if 'mask_sensitive_info' in model_parameters and type(model_parameters['mask_sensitive_info']) == bool:+ extra_kwargs['mask_sensitive_info'] = model_parameters['mask_sensitive_info']+if model_parameters.get('plugin_web_search'):extra_kwargs['plugins'] = ['plugin_web_search'