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
Add model parameter enable_enhance for hunyuan llm model (#6847)
Giga Group4b410494b3d0
diff --git a/api/core/model_runtime/model_providers/hunyuan/llm/hunyuan-pro.yaml b/api/core/model_runtime/model_providers/hunyuan/llm/hunyuan-pro.yamlindex d3b1b6d8b66..b173ffbe778 100644--- a/api/core/model_runtime/model_providers/hunyuan/llm/hunyuan-pro.yaml+++ b/api/core/model_runtime/model_providers/hunyuan/llm/hunyuan-pro.yaml@@ -21,6 +21,16 @@ parameter_rules:default: 1024min: 1max: 32000+ - name: enable_enhance+ label:+ zh_Hans: 功能增强+ en_US: Enable Enhancement+ type: boolean+ help:+ zh_Hans: 功能增强(如搜索)开关,关闭时将直接由主模型生成回复内容,可以降低响应时延(对于流式输出时的首字时延尤为明显)。但在少数场景里,回复效果可能会下降。+ en_US: Allow the model to perform external search to enhance the generation results.+ required: false+ default: truepricing:input: '0.03'output: '0.10'diff --git a/api/core/model_runtime/model_providers/hunyuan/llm/hunyuan-standard-256k.yaml b/api/core/model_runtime/model_providers/hunyuan/llm/hunyuan-standard-256k.yamlindex 3b28317497f..1f94a8623b4 100644--- a/api/core/model_runtime/model_providers/hunyuan/llm/hunyuan-standard-256k.yaml+++ b/api/core/model_runtime/model_providers/hunyuan/llm/hunyuan-standard-256k.yaml@@ -21,6 +21,16 @@ parameter_rules:default: 1024min: 1max: 256000+ - name: enable_enhance+ label:+ zh_Hans: 功能增强+ en_US: Enable Enhancement+ type: boolean+ help:+ zh_Hans: 功能增强(如搜索)开关,关闭时将直接由主模型生成回复内容,可以降低响应时延(对于流式输出时的首字时延尤为明显)。但在少数场景里,回复效果可能会下降。+ en_US: Allow the model to perform external search to enhance the generation results.+ required: false+ default: truepricing:input: '0.015'output: '0.06'diff --git a/api/core/model_runtime/model_providers/hunyuan/llm/hunyuan-standard.yaml b/api/core/model_runtime/model_providers/hunyuan/llm/hunyuan-standard.yamlindex 88b27f51c4f..1db25930fc7 100644--- a/api/core/model_runtime/model_providers/hunyuan/llm/hunyuan-standard.yaml+++ b/api/core/model_runtime/model_providers/hunyuan/llm/hunyuan-standard.yaml@@ -21,6 +21,16 @@ parameter_rules:default: 1024min: 1max: 32000+ - name: enable_enhance+ label:+ zh_Hans: 功能增强+ en_US: Enable Enhancement+ type: boolean+ help:+ zh_Hans: 功能增强(如搜索)开关,关闭时将直接由主模型生成回复内容,可以降低响应时延(对于流式输出时的首字时延尤为明显)。但在少数场景里,回复效果可能会下降。+ en_US: Allow the model to perform external search to enhance the generation results.+ required: false+ default: truepricing:input: '0.0045'output: '0.0005'diff --git a/api/core/model_runtime/model_providers/hunyuan/llm/llm.py b/api/core/model_runtime/model_providers/hunyuan/llm/llm.pyindex 8859dd72bd8..6d22f9d2d66 100644--- a/api/core/model_runtime/model_providers/hunyuan/llm/llm.py+++ b/api/core/model_runtime/model_providers/hunyuan/llm/llm.py@@ -36,7 +36,8 @@ class HunyuanLargeLanguageModel(LargeLanguageModel):custom_parameters = {'Temperature': model_parameters.get('temperature', 0.0),- 'TopP': model_parameters.get('top_p', 1.0)+ 'TopP': model_parameters.get('top_p', 1.0),+ 'EnableEnhancement': model_parameters.get('enable_enhance', True)}params = {