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 e78b77c7f2..d7fb13d7c7 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 2c9857cf9f..ee6a090175 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 7ea5afc795..9e46443f9c 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 d4c03100ec..7b2ca77b6b 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 8b204ff1f0..cfe4b5a666 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 3875a274e7..e541c197b0 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 0920806845..ba4514e3d6 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 824954323b..e5596041af 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 c0a4b45be6..4004c59417 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 92b67804e8..d8f53666ce 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 960438e3e7..890f7e6e4e 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 59a8827d9e..6d3d2dd5bb 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 f14ee2daff..17d0eb5b35 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 8ea8166358..435b3f90a2 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 8ea8166358..435b3f90a2 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