Skip to content

armgit / dify

Public Imported from GitHub
0

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.

update lite8k/speed8k/128k max_token to newest (#4636)

Krasus.Chenf156014daaba
diff --git a/api/core/model_runtime/model_providers/wenxin/llm/ernie-lite-8k-0308.yaml b/api/core/model_runtime/model_providers/wenxin/llm/ernie-lite-8k-0308.yaml
index 3f09f10d1a7..78325c1d643 100644
--- a/api/core/model_runtime/model_providers/wenxin/llm/ernie-lite-8k-0308.yaml
+++ b/api/core/model_runtime/model_providers/wenxin/llm/ernie-lite-8k-0308.yaml
@@ -22,7 +22,7 @@ parameter_rules:
use_template: max_tokens
default: 1024
min: 2
- max: 1024
+ max: 2048
- name: presence_penalty
use_template: presence_penalty
default: 1.0
diff --git a/api/core/model_runtime/model_providers/wenxin/llm/ernie-speed-128k.yaml b/api/core/model_runtime/model_providers/wenxin/llm/ernie-speed-128k.yaml
index 3b8885c862c..331639624cc 100644
--- a/api/core/model_runtime/model_providers/wenxin/llm/ernie-speed-128k.yaml
+++ b/api/core/model_runtime/model_providers/wenxin/llm/ernie-speed-128k.yaml
@@ -20,9 +20,9 @@ parameter_rules:
default: 0.7
- name: max_tokens
use_template: max_tokens
- default: 1024
+ default: 4096
min: 2
- max: 1024
+ max: 4096
- name: presence_penalty
use_template: presence_penalty
default: 1.0
diff --git a/api/core/model_runtime/model_providers/wenxin/llm/ernie-speed-8k.yaml b/api/core/model_runtime/model_providers/wenxin/llm/ernie-speed-8k.yaml
index 25d32c9f8a1..304c6d1f7ed 100644
--- a/api/core/model_runtime/model_providers/wenxin/llm/ernie-speed-8k.yaml
+++ b/api/core/model_runtime/model_providers/wenxin/llm/ernie-speed-8k.yaml
@@ -22,7 +22,7 @@ parameter_rules:
use_template: max_tokens
default: 1024
min: 2
- max: 1024
+ max: 2048
- name: presence_penalty
use_template: presence_penalty
default: 1.0