From 1568c5cae96652bbeea89e2971a48e19818d10fd Mon Sep 17 00:00:00 2001 From: Su Yang Date: Fri, 20 Sep 2024 15:29:33 +0800 Subject: [PATCH] fix: fix qwen series model type (#8580) --- .../model_runtime/model_providers/tongyi/llm/qwen-plus.yaml | 2 +- .../model_providers/tongyi/llm/qwen-turbo-0206.yaml | 2 +- .../model_providers/tongyi/llm/qwen-turbo-0624.yaml | 2 +- .../model_runtime/model_providers/tongyi/llm/qwen-turbo.yaml | 2 +- .../model_providers/tongyi/llm/qwen2-math-1.5b-instruct.yaml | 2 +- .../model_providers/tongyi/llm/qwen2-math-72b-instruct.yaml | 2 +- .../model_providers/tongyi/llm/qwen2-math-7b-instruct.yaml | 2 +- .../model_providers/tongyi/llm/qwen2.5-0.5b-instruct.yaml | 2 +- .../model_providers/tongyi/llm/qwen2.5-1.5b-instruct.yaml | 2 +- .../model_providers/tongyi/llm/qwen2.5-14b-instruct.yaml | 2 +- .../model_providers/tongyi/llm/qwen2.5-32b-instruct.yaml | 2 +- .../model_providers/tongyi/llm/qwen2.5-3b-instruct.yaml | 2 +- .../model_providers/tongyi/llm/qwen2.5-72b-instruct.yaml | 2 +- .../model_providers/tongyi/llm/qwen2.5-7b-instruct.yaml | 2 +- .../model_providers/tongyi/llm/qwen2.5-coder-7b-instruct.yaml | 2 +- 15 files changed, 15 insertions(+), 15 deletions(-) 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