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 e78b77c7f..d7fb13d7c 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 2c9857cf9..ee6a09017 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 7ea5afc79..9e46443f9 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 d4c03100e..7b2ca77b6 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 8b204ff1f..cfe4b5a66 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 3875a274e..e541c197b 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 092080684..ba4514e3d 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 824954323..e5596041a 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 c0a4b45be..4004c5941 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 92b67804e..d8f53666c 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 960438e3e..890f7e6e4 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 59a8827d9..6d3d2dd5b 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 f14ee2daf..17d0eb5b3 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 8ea816635..435b3f90a 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 8ea816635..435b3f90a 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