ソースを参照

fix: max_tokens of qwen-plus & qwen-plus-chat (#5480)

crazywoola 10 ヶ月 前
コミット
91d38a535f

+ 2 - 2
api/core/model_runtime/model_providers/tongyi/llm/qwen-plus-chat.yaml

@@ -22,9 +22,9 @@ parameter_rules:
   - name: max_tokens
     use_template: max_tokens
     type: int
-    default: 1500
+    default: 2000
     min: 1
-    max: 1500
+    max: 2000
     help:
       zh_Hans: 用于指定模型在生成内容时token的最大数量,它定义了生成的上限,但不保证每次都会生成到这个数量。
       en_US: It is used to specify the maximum number of tokens when the model generates content. It defines the upper limit of generation, but does not guarantee that this number will be generated every time.

+ 2 - 2
api/core/model_runtime/model_providers/tongyi/llm/qwen-plus.yaml

@@ -20,9 +20,9 @@ parameter_rules:
   - name: max_tokens
     use_template: max_tokens
     type: int
-    default: 1500
+    default: 2000
     min: 1
-    max: 1500
+    max: 2000
     help:
       zh_Hans: 用于指定模型在生成内容时token的最大数量,它定义了生成的上限,但不保证每次都会生成到这个数量。
       en_US: It is used to specify the maximum number of tokens when the model generates content. It defines the upper limit of generation, but does not guarantee that this number will be generated every time.