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.

fix: Correct context size for banchuan2-53b and banchuan2-turbo (#4721)

xielong88b4d69278aa
diff --git a/api/core/model_runtime/model_providers/baichuan/llm/baichuan2-53b.yaml b/api/core/model_runtime/model_providers/baichuan/llm/baichuan2-53b.yaml
index e7cf059ea51..04849500dcb 100644
--- a/api/core/model_runtime/model_providers/baichuan/llm/baichuan2-53b.yaml
+++ b/api/core/model_runtime/model_providers/baichuan/llm/baichuan2-53b.yaml
@@ -6,7 +6,7 @@ features:
- agent-thought
model_properties:
mode: chat
- context_size: 4000
+ context_size: 32000
parameter_rules:
- name: temperature
use_template: temperature
diff --git a/api/core/model_runtime/model_providers/baichuan/llm/baichuan2-turbo.yaml b/api/core/model_runtime/model_providers/baichuan/llm/baichuan2-turbo.yaml
index fb5d73b0682..f91329c77aa 100644
--- a/api/core/model_runtime/model_providers/baichuan/llm/baichuan2-turbo.yaml
+++ b/api/core/model_runtime/model_providers/baichuan/llm/baichuan2-turbo.yaml
@@ -6,7 +6,7 @@ features:
- agent-thought
model_properties:
mode: chat
- context_size: 192000
+ context_size: 32000
parameter_rules:
- name: temperature
use_template: temperature