|
@@ -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
|
|
|
*/
|