Commit d37c1c4ecc2d57306eb1ddc6ecce1634931780e5

Authored by cherishsince
1 parent 10a94c3e

【优化】配置文件统一增加 max-tokens配置 和 topP topK 配置

yudao-server/src/main/resources/application-local.yaml
@@ -228,17 +228,18 @@ yudao: @@ -228,17 +228,18 @@ yudao:
228 qianwen: 228 qianwen:
229 enable: true 229 enable: true
230 aiPlatform: QIAN_WEN 230 aiPlatform: QIAN_WEN
  231 + max-tokens: 1500
231 temperature: 0.85 232 temperature: 0.85
232 topP: 0.8 233 topP: 0.8
233 topK: 0 234 topK: 0
234 api-key: sk-Zsd81gZYg7 235 api-key: sk-Zsd81gZYg7
235 - max-tokens: 1500  
236 xinghuo: 236 xinghuo:
237 enable: true 237 enable: true
238 aiPlatform: XING_HUO 238 aiPlatform: XING_HUO
239 - temperature: 1  
240 - topP: 1  
241 - topK: 1 239 + max-tokens: 1500
  240 + temperature: 0.85
  241 + topP: 0.8
  242 + topK: 0
242 appId: 13c8cca6 243 appId: 13c8cca6
243 appKey: cb6415c19d6162cda07b47316fcb0416 244 appKey: cb6415c19d6162cda07b47316fcb0416
244 secretKey: Y2JiYTIxZjA3MDMxMjNjZjQzYzVmNzdh 245 secretKey: Y2JiYTIxZjA3MDMxMjNjZjQzYzVmNzdh
@@ -246,9 +247,10 @@ yudao: @@ -246,9 +247,10 @@ yudao:
246 yiyan: 247 yiyan:
247 enable: true 248 enable: true
248 aiPlatform: YI_YAN 249 aiPlatform: YI_YAN
249 - temperature: 1  
250 - topP: 1  
251 - topK: 1 250 + max-tokens: 1500
  251 + temperature: 0.85
  252 + topP: 0.8
  253 + topK: 0
252 appKey: x0cuLZ7XsaTCU08vuJWO87Lg 254 appKey: x0cuLZ7XsaTCU08vuJWO87Lg
253 secretKey: R9mYF9dl9KASgi5RUq0FQt3wRisSnOcK 255 secretKey: R9mYF9dl9KASgi5RUq0FQt3wRisSnOcK
254 refreshTokenSecondTime: 86400 256 refreshTokenSecondTime: 86400