mirror of
https://gitee.com/huangge1199_admin/vue-pro.git
synced 2025-01-31 09:30:05 +08:00
【优化】抽离 maxTokens 作为公共参数
This commit is contained in:
parent
e4bb7262c3
commit
c811f3a4c2
@ -37,6 +37,10 @@ public class YudaoAiProperties {
|
|||||||
private Float topP;
|
private Float topP;
|
||||||
|
|
||||||
private Integer topK;
|
private Integer topK;
|
||||||
|
/**
|
||||||
|
* 用于限制模型生成token的数量,max_tokens设置的是生成上限,并不表示一定会生成这么多的token数量
|
||||||
|
*/
|
||||||
|
private Integer maxTokens;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Data
|
@Data
|
||||||
@ -47,10 +51,6 @@ public class YudaoAiProperties {
|
|||||||
* api key
|
* api key
|
||||||
*/
|
*/
|
||||||
private String apiKey;
|
private String apiKey;
|
||||||
/**
|
|
||||||
* 用于限制模型生成token的数量,max_tokens设置的是生成上限,并不表示一定会生成这么多的token数量
|
|
||||||
*/
|
|
||||||
private Integer maxTokens;
|
|
||||||
/**
|
/**
|
||||||
* model
|
* model
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user