From c811f3a4c21c40be211ed8b7c9dedc34f18dacc7 Mon Sep 17 00:00:00 2001 From: cherishsince Date: Sat, 27 Apr 2024 17:23:52 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E4=BC=98=E5=8C=96=E3=80=91=E6=8A=BD?= =?UTF-8?q?=E7=A6=BB=20maxTokens=20=E4=BD=9C=E4=B8=BA=E5=85=AC=E5=85=B1?= =?UTF-8?q?=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../yudao/framework/ai/config/YudaoAiProperties.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/yudao-module-ai/yudao-spring-boot-starter-ai/src/main/java/cn/iocoder/yudao/framework/ai/config/YudaoAiProperties.java b/yudao-module-ai/yudao-spring-boot-starter-ai/src/main/java/cn/iocoder/yudao/framework/ai/config/YudaoAiProperties.java index 71358aee0..d638a2b06 100644 --- a/yudao-module-ai/yudao-spring-boot-starter-ai/src/main/java/cn/iocoder/yudao/framework/ai/config/YudaoAiProperties.java +++ b/yudao-module-ai/yudao-spring-boot-starter-ai/src/main/java/cn/iocoder/yudao/framework/ai/config/YudaoAiProperties.java @@ -37,6 +37,10 @@ public class YudaoAiProperties { private Float topP; private Integer topK; + /** + * 用于限制模型生成token的数量,max_tokens设置的是生成上限,并不表示一定会生成这么多的token数量 + */ + private Integer maxTokens; } @Data @@ -47,10 +51,6 @@ public class YudaoAiProperties { * api key */ private String apiKey; - /** - * 用于限制模型生成token的数量,max_tokens设置的是生成上限,并不表示一定会生成这么多的token数量 - */ - private Integer maxTokens; /** * model */