From cbdb861ee4420cb4e0631ec101406f31fc841741 Mon Sep 17 00:00:00 2001 From: orangeclk Date: Tue, 30 Apr 2024 17:08:04 +0800 Subject: [PATCH] add glm-3-turbo max_tokens parameter setting (#4017) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: 陈力坤 --- .../model_providers/zhipuai/llm/glm_3_turbo.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/api/core/model_runtime/model_providers/zhipuai/llm/glm_3_turbo.yaml b/api/core/model_runtime/model_providers/zhipuai/llm/glm_3_turbo.yaml index b0027d01e3..5bdb442840 100644 --- a/api/core/model_runtime/model_providers/zhipuai/llm/glm_3_turbo.yaml +++ b/api/core/model_runtime/model_providers/zhipuai/llm/glm_3_turbo.yaml @@ -32,3 +32,8 @@ parameter_rules: zh_Hans: SSE接口调用时,用于控制每次返回内容方式是增量还是全量,不提供此参数时默认为增量返回,true 为增量返回,false 为全量返回。 en_US: When the SSE interface is called, it is used to control whether the content is returned incrementally or in full. If this parameter is not provided, the default is incremental return. true means incremental return, false means full return. required: false + - name: max_tokens + use_template: max_tokens + default: 1024 + min: 1 + max: 8192