application.yml 3.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. server:
  2. port: 8085
  3. ai:
  4. models: #大模型相关配置
  5. enabled:
  6. - glm-4
  7. configs:
  8. glm-4:
  9. api-key: aac7e6c624284d609a1b9d7dd2b0903b
  10. base-url: https://open.bigmodel.cn/api/paas/v4
  11. model-name: glm-4
  12. vector: #向量相关配置
  13. host: 127.0.0.1 #Milvus地址
  14. port: 19530 #Milvus端口,api通信端口,非web访问端口.
  15. collectionName: iyque_vectors #向量集合名称
  16. dimension: 1536 #向量维度
  17. score: 0.4f #向量查询相似度
  18. enabled:
  19. - embedding-3
  20. configs:
  21. embedding-3:
  22. api-key: 3ea0ef4ec2da49a8b67b6c0e6f5830fe.XEXMSTVVfd3sp0o7
  23. base-url: https://open.bigmodel.cn/api/paas/v4
  24. model-name: embedding-3
  25. iyque:
  26. userName: hyrealadmin
  27. pwd: '1q2w3e4r@@'
  28. demo: false
  29. fileViewUrl: http://127.0.0.1:8085/file/fileView/ #文件统一访问前缀,后端api指向 FileController.readFile
  30. uploadDir: ./upload
  31. inquiryAll: true
  32. complaintUrl: http://iyque.cn/openmobile/customerComplaint #投诉页面
  33. customerSeasUrl: https://iyque.cn/openmobile/customerSeas #客户公海页面
  34. h5MarketUrl: https://iyque.cn/openmobile/H5Marketing?id={0} #h5营销页面
  35. vector:
  36. host: 127.0.0.1 #Milvus地址
  37. port: 19530 #Milvus端口,api通信端口,非web访问端口.
  38. collectionName: iyque_vectors #向量集合名称
  39. dimension: 1536 #向量维度
  40. vectorModel: embedding-3 #向量模型,支持智普的 embedding-3,与embedding-2
  41. score: 0.4f #向量查询相似度
  42. skillhub: #SkillHub统一账号体系对接(登录 + AI算力)
  43. baseUrl: https://www.goodpoint.top
  44. aiBaseUrl: https://ohub.goodpoint.top #AI网关走ohub子域(App Direct认证)
  45. defaultUserId: cmpxs43no00028tzuttpf8dbm #账号密码登录时的默认AI扣费用户(ADMIN)
  46. appKey: app_60c3e90a6a09d02dbaa0fffb
  47. appSecret: sk_app_61c197fed413b55c661d89696ff543f7fdf9ae45ee1498ab
  48. redirectUri: https://scrm.goodpoint.top/iyque/oauth/skillhub/callback
  49. allowedRoles: ADMIN,ASSISTANT #管理员与助理管理员可登录,普通用户拒绝
  50. aiEnabled: true #开启后将AI调用切换到skillhub算力网关(按登录用户扣费)
  51. modelName: hy3 #腾讯混元3(Hy3)
  52. appDirectSecret: 服务器skillhub_env的APP_DIRECT_RELAY_SECRET #由部署脚本自动写入
  53. spring:
  54. datasource:
  55. url: jdbc:mysql://127.0.0.1:10179/scrm_ky?useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=Asia/Shanghai
  56. driver-class-name: com.mysql.cj.jdbc.Driver
  57. username: root
  58. password: root
  59. jpa:
  60. database-platform: org.hibernate.dialect.MySQL8Dialect
  61. hibernate:
  62. ddl-auto: none
  63. naming:
  64. physical-strategy: org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl
  65. generate-ddl: true
  66. show-sql: true
  67. properties:
  68. hibernate:
  69. format_sql: true
  70. redis:
  71. host: 127.0.0.1
  72. port: 6379
  73. database: 1
  74. jackson:
  75. time-zone: Asia/Shanghai
  76. serialization:
  77. fail-on-empty-beans: false
  78. servlet:
  79. multipart:
  80. max-file-size: 20MB
  81. max-request-size: 20MB
  82. # MyBatis-Plus 配置
  83. mybatis-plus:
  84. mapper-locations: classpath*:mapper/**/*.xml
  85. type-aliases-package: com.yourproject.entity # 替换为你的实体类所在包
  86. configuration:
  87. map-underscore-to-camel-case: false # 自动将下划线字段名映射为驼峰属性名
  88. log-impl: org.apache.ibatis.logging.stdout.StdOutImpl # 输出MyBatis-Plus的SQL日志