【优化】抽离 maxTokens 作为公共参数
This commit is contained in:
parent
e4bb7262c3
commit
c811f3a4c2
|
@ -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
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue