spring-configuration-metadata.json 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  1. {
  2. "groups": [
  3. {
  4. "name": "spring.cloud.ai.openai",
  5. "type": "jnpf.config.AiProperties",
  6. "sourceType": "jnpf.config.AiAutoConfiguration$AiEnabledConfiguration",
  7. "sourceMethod": "getAiProperties()"
  8. },
  9. {
  10. "name": "spring.cloud.ai.openai.chat",
  11. "type": "jnpf.config.AiProperties$ChatOption",
  12. "sourceType": "jnpf.config.AiProperties",
  13. "sourceMethod": "getChat()"
  14. },
  15. {
  16. "name": "spring.cloud.ai.openai.proxy",
  17. "type": "jnpf.config.AiProperties$Proxy",
  18. "sourceType": "jnpf.config.AiProperties",
  19. "sourceMethod": "getProxy()"
  20. }
  21. ],
  22. "properties": [
  23. {
  24. "name": "spring.cloud.ai.openai.api-host",
  25. "type": "java.lang.String",
  26. "description": "openai服务器",
  27. "sourceType": "jnpf.config.AiProperties"
  28. },
  29. {
  30. "name": "spring.cloud.ai.openai.api-key",
  31. "type": "java.util.List<java.lang.String>",
  32. "description": "openai key",
  33. "sourceType": "jnpf.config.AiProperties"
  34. },
  35. {
  36. "name": "spring.cloud.ai.openai.chat.enable-search",
  37. "type": "java.lang.Boolean",
  38. "sourceType": "jnpf.config.AiProperties$ChatOption",
  39. "defaultValue": true
  40. },
  41. {
  42. "name": "spring.cloud.ai.openai.chat.max-tokens",
  43. "type": "java.lang.Integer",
  44. "description": "允许模型生成的最大Token数。",
  45. "sourceType": "jnpf.config.AiProperties$ChatOption",
  46. "defaultValue": 1500
  47. },
  48. {
  49. "name": "spring.cloud.ai.openai.chat.mode",
  50. "type": "java.lang.String",
  51. "description": "@see AiConstants.Model",
  52. "sourceType": "jnpf.config.AiProperties$ChatOption"
  53. },
  54. {
  55. "name": "spring.cloud.ai.openai.chat.seed",
  56. "type": "java.lang.Integer",
  57. "description": "设置seed参数会使文本生成过程更具有确定性,通常用于使模型每次运行的结果一致。 在每次模型调用时传入相同的seed值(由您指定),并保持其他参数不变,模型将很可能返回相同的结果。",
  58. "sourceType": "jnpf.config.AiProperties$ChatOption",
  59. "defaultValue": 1234
  60. },
  61. {
  62. "name": "spring.cloud.ai.openai.chat.temperature",
  63. "type": "java.lang.Double",
  64. "description": "采样温度,用于控制模型生成文本的多样性。 temperature越高,生成的文本更多样,反之,生成的文本更确定。 由于temperature与top_p均可以控制生成文本的多样性,因此建议您只设置其中一个值。",
  65. "sourceType": "jnpf.config.AiProperties$ChatOption",
  66. "defaultValue": 0.85
  67. },
  68. {
  69. "name": "spring.cloud.ai.openai.chat.top-p",
  70. "type": "java.lang.Double",
  71. "description": "核采样的概率阈值,用于控制模型生成文本的多样性。 top_p越高,生成的文本更多样。反之,生成的文本更确定。 由于temperature与top_p均可以控制生成文本的多样性,因此建议您只设置其中一个值。",
  72. "sourceType": "jnpf.config.AiProperties$ChatOption",
  73. "defaultValue": 0.8
  74. },
  75. {
  76. "name": "spring.cloud.ai.openai.enabled",
  77. "type": "java.lang.Boolean",
  78. "description": "是否启用",
  79. "sourceType": "jnpf.config.AiProperties",
  80. "defaultValue": false
  81. },
  82. {
  83. "name": "spring.cloud.ai.openai.proxy.host",
  84. "type": "java.lang.String",
  85. "description": "代理域名",
  86. "sourceType": "jnpf.config.AiProperties$Proxy"
  87. },
  88. {
  89. "name": "spring.cloud.ai.openai.proxy.password",
  90. "type": "java.lang.String",
  91. "description": "代理密码",
  92. "sourceType": "jnpf.config.AiProperties$Proxy"
  93. },
  94. {
  95. "name": "spring.cloud.ai.openai.proxy.port",
  96. "type": "java.lang.Integer",
  97. "description": "代理端口",
  98. "sourceType": "jnpf.config.AiProperties$Proxy"
  99. },
  100. {
  101. "name": "spring.cloud.ai.openai.proxy.type",
  102. "type": "java.net.Proxy$Type",
  103. "description": "HTTP, SOCKS",
  104. "sourceType": "jnpf.config.AiProperties$Proxy",
  105. "defaultValue": "http"
  106. },
  107. {
  108. "name": "spring.cloud.ai.openai.proxy.username",
  109. "type": "java.lang.String",
  110. "description": "代理用户名",
  111. "sourceType": "jnpf.config.AiProperties$Proxy"
  112. },
  113. {
  114. "name": "spring.cloud.ai.openai.timeout",
  115. "type": "java.lang.Long",
  116. "description": "超时时间",
  117. "sourceType": "jnpf.config.AiProperties",
  118. "defaultValue": 30
  119. },
  120. {
  121. "name": "spring.cloud.ai.openai.total-limit-count",
  122. "type": "java.lang.Integer",
  123. "description": "全部请求限制时间内的请求次数",
  124. "sourceType": "jnpf.config.AiProperties",
  125. "defaultValue": 500
  126. },
  127. {
  128. "name": "spring.cloud.ai.openai.total-limit-time",
  129. "type": "java.time.Duration",
  130. "description": "全部请求限制时间频率",
  131. "sourceType": "jnpf.config.AiProperties",
  132. "defaultValue": "1m"
  133. },
  134. {
  135. "name": "spring.cloud.ai.openai.user-limit-count",
  136. "type": "java.lang.Integer",
  137. "description": "每个用户限制时间内的请求次数",
  138. "sourceType": "jnpf.config.AiProperties",
  139. "defaultValue": 1
  140. },
  141. {
  142. "name": "spring.cloud.ai.openai.user-limit-time",
  143. "type": "java.time.Duration",
  144. "description": "每个用户限制时间频率",
  145. "sourceType": "jnpf.config.AiProperties",
  146. "defaultValue": "3s"
  147. }
  148. ],
  149. "hints": [],
  150. "ignored": {
  151. "properties": []
  152. }
  153. }