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: fix qwen series model type (#8580)

Su Yang1568c5cae966
diff --git a/api/core/model_runtime/model_providers/tongyi/llm/qwen-plus.yaml b/api/core/model_runtime/model_providers/tongyi/llm/qwen-plus.yaml
index e78b77c7f29..d7fb13d7c71 100644
--- a/api/core/model_runtime/model_providers/tongyi/llm/qwen-plus.yaml
+++ b/api/core/model_runtime/model_providers/tongyi/llm/qwen-plus.yaml
@@ -5,7 +5,7 @@ model_type: llm
features:
- agent-thought
model_properties:
- mode: completion
+ mode: chat
context_size: 131072
parameter_rules:
- name: temperature
diff --git a/api/core/model_runtime/model_providers/tongyi/llm/qwen-turbo-0206.yaml b/api/core/model_runtime/model_providers/tongyi/llm/qwen-turbo-0206.yaml
index 2c9857cf9f0..ee6a0901759 100644
--- a/api/core/model_runtime/model_providers/tongyi/llm/qwen-turbo-0206.yaml
+++ b/api/core/model_runtime/model_providers/tongyi/llm/qwen-turbo-0206.yaml
@@ -5,7 +5,7 @@ model_type: llm
features:
- agent-thought
model_properties:
- mode: completion
+ mode: chat
context_size: 8192
parameter_rules:
- name: temperature
diff --git a/api/core/model_runtime/model_providers/tongyi/llm/qwen-turbo-0624.yaml b/api/core/model_runtime/model_providers/tongyi/llm/qwen-turbo-0624.yaml
index 7ea5afc7956..9e46443f9c8 100644
--- a/api/core/model_runtime/model_providers/tongyi/llm/qwen-turbo-0624.yaml
+++ b/api/core/model_runtime/model_providers/tongyi/llm/qwen-turbo-0624.yaml
@@ -5,7 +5,7 @@ model_type: llm
features:
- agent-thought
model_properties:
- mode: completion
+ mode: chat
context_size: 8192
parameter_rules:
- name: temperature
diff --git a/api/core/model_runtime/model_providers/tongyi/llm/qwen-turbo.yaml b/api/core/model_runtime/model_providers/tongyi/llm/qwen-turbo.yaml
index d4c03100ecb..7b2ca77b6be 100644
--- a/api/core/model_runtime/model_providers/tongyi/llm/qwen-turbo.yaml
+++ b/api/core/model_runtime/model_providers/tongyi/llm/qwen-turbo.yaml
@@ -5,7 +5,7 @@ model_type: llm
features:
- agent-thought
model_properties:
- mode: completion
+ mode: chat
context_size: 8192
parameter_rules:
- name: temperature
diff --git a/api/core/model_runtime/model_providers/tongyi/llm/qwen2-math-1.5b-instruct.yaml b/api/core/model_runtime/model_providers/tongyi/llm/qwen2-math-1.5b-instruct.yaml
index 8b204ff1f05..cfe4b5a6662 100644
--- a/api/core/model_runtime/model_providers/tongyi/llm/qwen2-math-1.5b-instruct.yaml
+++ b/api/core/model_runtime/model_providers/tongyi/llm/qwen2-math-1.5b-instruct.yaml
@@ -5,7 +5,7 @@ model_type: llm
features:
- agent-thought
model_properties:
- mode: completion
+ mode: chat
context_size: 4096
parameter_rules:
- name: temperature
diff --git a/api/core/model_runtime/model_providers/tongyi/llm/qwen2-math-72b-instruct.yaml b/api/core/model_runtime/model_providers/tongyi/llm/qwen2-math-72b-instruct.yaml
index 3875a274e7a..e541c197b0f 100644
--- a/api/core/model_runtime/model_providers/tongyi/llm/qwen2-math-72b-instruct.yaml
+++ b/api/core/model_runtime/model_providers/tongyi/llm/qwen2-math-72b-instruct.yaml
@@ -5,7 +5,7 @@ model_type: llm
features:
- agent-thought
model_properties:
- mode: completion
+ mode: chat
context_size: 4096
parameter_rules:
- name: temperature
diff --git a/api/core/model_runtime/model_providers/tongyi/llm/qwen2-math-7b-instruct.yaml b/api/core/model_runtime/model_providers/tongyi/llm/qwen2-math-7b-instruct.yaml
index 09208068456..ba4514e3d6e 100644
--- a/api/core/model_runtime/model_providers/tongyi/llm/qwen2-math-7b-instruct.yaml
+++ b/api/core/model_runtime/model_providers/tongyi/llm/qwen2-math-7b-instruct.yaml
@@ -5,7 +5,7 @@ model_type: llm
features:
- agent-thought
model_properties:
- mode: completion
+ mode: chat
context_size: 4096
parameter_rules:
- name: temperature
diff --git a/api/core/model_runtime/model_providers/tongyi/llm/qwen2.5-0.5b-instruct.yaml b/api/core/model_runtime/model_providers/tongyi/llm/qwen2.5-0.5b-instruct.yaml
index 824954323be..e5596041af6 100644
--- a/api/core/model_runtime/model_providers/tongyi/llm/qwen2.5-0.5b-instruct.yaml
+++ b/api/core/model_runtime/model_providers/tongyi/llm/qwen2.5-0.5b-instruct.yaml
@@ -5,7 +5,7 @@ model_type: llm
features:
- agent-thought
model_properties:
- mode: completion
+ mode: chat
context_size: 32768
parameter_rules:
- name: temperature
diff --git a/api/core/model_runtime/model_providers/tongyi/llm/qwen2.5-1.5b-instruct.yaml b/api/core/model_runtime/model_providers/tongyi/llm/qwen2.5-1.5b-instruct.yaml
index c0a4b45be6e..4004c594171 100644
--- a/api/core/model_runtime/model_providers/tongyi/llm/qwen2.5-1.5b-instruct.yaml
+++ b/api/core/model_runtime/model_providers/tongyi/llm/qwen2.5-1.5b-instruct.yaml
@@ -5,7 +5,7 @@ model_type: llm
features:
- agent-thought
model_properties:
- mode: completion
+ mode: chat
context_size: 32768
parameter_rules:
- name: temperature
diff --git a/api/core/model_runtime/model_providers/tongyi/llm/qwen2.5-14b-instruct.yaml b/api/core/model_runtime/model_providers/tongyi/llm/qwen2.5-14b-instruct.yaml
index 92b67804e88..d8f53666ced 100644
--- a/api/core/model_runtime/model_providers/tongyi/llm/qwen2.5-14b-instruct.yaml
+++ b/api/core/model_runtime/model_providers/tongyi/llm/qwen2.5-14b-instruct.yaml
@@ -5,7 +5,7 @@ model_type: llm
features:
- agent-thought
model_properties:
- mode: completion
+ mode: chat
context_size: 131072
parameter_rules:
- name: temperature
diff --git a/api/core/model_runtime/model_providers/tongyi/llm/qwen2.5-32b-instruct.yaml b/api/core/model_runtime/model_providers/tongyi/llm/qwen2.5-32b-instruct.yaml
index 960438e3e7c..890f7e6e4e5 100644
--- a/api/core/model_runtime/model_providers/tongyi/llm/qwen2.5-32b-instruct.yaml
+++ b/api/core/model_runtime/model_providers/tongyi/llm/qwen2.5-32b-instruct.yaml
@@ -5,7 +5,7 @@ model_type: llm
features:
- agent-thought
model_properties:
- mode: completion
+ mode: chat
context_size: 131072
parameter_rules:
- name: temperature
diff --git a/api/core/model_runtime/model_providers/tongyi/llm/qwen2.5-3b-instruct.yaml b/api/core/model_runtime/model_providers/tongyi/llm/qwen2.5-3b-instruct.yaml
index 59a8827d9ef..6d3d2dd5bb5 100644
--- a/api/core/model_runtime/model_providers/tongyi/llm/qwen2.5-3b-instruct.yaml
+++ b/api/core/model_runtime/model_providers/tongyi/llm/qwen2.5-3b-instruct.yaml
@@ -5,7 +5,7 @@ model_type: llm
features:
- agent-thought
model_properties:
- mode: completion
+ mode: chat
context_size: 32768
parameter_rules:
- name: temperature
diff --git a/api/core/model_runtime/model_providers/tongyi/llm/qwen2.5-72b-instruct.yaml b/api/core/model_runtime/model_providers/tongyi/llm/qwen2.5-72b-instruct.yaml
index f14ee2daff5..17d0eb5b351 100644
--- a/api/core/model_runtime/model_providers/tongyi/llm/qwen2.5-72b-instruct.yaml
+++ b/api/core/model_runtime/model_providers/tongyi/llm/qwen2.5-72b-instruct.yaml
@@ -5,7 +5,7 @@ model_type: llm
features:
- agent-thought
model_properties:
- mode: completion
+ mode: chat
context_size: 131072
parameter_rules:
- name: temperature
diff --git a/api/core/model_runtime/model_providers/tongyi/llm/qwen2.5-7b-instruct.yaml b/api/core/model_runtime/model_providers/tongyi/llm/qwen2.5-7b-instruct.yaml
index 8ea81663587..435b3f90a2b 100644
--- a/api/core/model_runtime/model_providers/tongyi/llm/qwen2.5-7b-instruct.yaml
+++ b/api/core/model_runtime/model_providers/tongyi/llm/qwen2.5-7b-instruct.yaml
@@ -5,7 +5,7 @@ model_type: llm
features:
- agent-thought
model_properties:
- mode: completion
+ mode: chat
context_size: 131072
parameter_rules:
- name: temperature
diff --git a/api/core/model_runtime/model_providers/tongyi/llm/qwen2.5-coder-7b-instruct.yaml b/api/core/model_runtime/model_providers/tongyi/llm/qwen2.5-coder-7b-instruct.yaml
index 8ea81663587..435b3f90a2b 100644
--- a/api/core/model_runtime/model_providers/tongyi/llm/qwen2.5-coder-7b-instruct.yaml
+++ b/api/core/model_runtime/model_providers/tongyi/llm/qwen2.5-coder-7b-instruct.yaml
@@ -5,7 +5,7 @@ model_type: llm
features:
- agent-thought
model_properties:
- mode: completion
+ mode: chat
context_size: 131072
parameter_rules:
- name: temperature