mirror of
				https://gitee.com/hhyykk/ipms-sjy.git
				synced 2025-10-31 18:28:43 +08:00 
			
		
		
		
	【优化】抽离 maxTokens 作为公共参数
This commit is contained in:
		| @@ -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 | ||||||
|          */ |          */ | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 cherishsince
					cherishsince