project-gpt-dev.yaml 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. server:
  2. port: 0 #端口
  3. spring:
  4. cloud:
  5. # nacos
  6. nacos:
  7. discovery:
  8. register-enabled: true
  9. server-addr: 127.0.0.1:8848
  10. username: nacos-dev
  11. password: nacos-dev
  12. namespace: 33360858-b0c2-4364-b8fb-d8879aa272a0
  13. circuitbreaker:
  14. sentinel:
  15. enabled: true
  16. sentinel:
  17. enabled: true
  18. transport:
  19. dashboard: 127.0.0.1:8858
  20. port: 0
  21. datasource:
  22. ds-flow-rules:
  23. nacos:
  24. server-addr: 127.0.0.1:8848
  25. username: nacos-dev
  26. password: nacos-dev
  27. namespace: 81037616-96ae-412c-a060-a633ba9731b9
  28. group-id: SENTINEL_GROUP
  29. data-id: ${spring.application.name}-flow-rules
  30. rule-type: flow
  31. data-type: json
  32. # 数据库配置
  33. datasource:
  34. url: jdbc:mysql://127.0.0.1:3306/gpt?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&useSSL=false&serverTimezone=Asia/Shanghai
  35. username: root
  36. password: 123456
  37. # rabbitmq配置
  38. rabbitmq:
  39. host: 127.0.0.1
  40. port: 5672
  41. # redis配置
  42. redis:
  43. host: 127.0.0.1
  44. port: 6379
  45. database: 0
  46. password: HorO9496sCopE
  47. clientName: ${spring.application.name}-redis
  48. # 日志配置
  49. logging:
  50. level:
  51. com:
  52. atmob:
  53. central: debug
  54. mybatis:
  55. configuration:
  56. logImpl: org.apache.ibatis.logging.stdout.StdOutImpl
  57. tencent:
  58. cloud:
  59. cos:
  60. secretId: AKIDkJbcBds6DAybJtEI6j8G9rNkvqgKl061
  61. secretKey: pSqyqa7NN6ZmkRbZIn10lgQwDEySpz1r
  62. bucketName: horoscope-1255984948
  63. cdnHost: http://cdn.atmob.com
  64. config:
  65. withdraw:
  66. warnEnabled: false
  67. webhookUrl: 'https://open.feishu.cn/open-apis/bot/v2/hook/9658fb50-ceb0-4822-aa7e-df70c624b529'
  68. chat:
  69. oneApiUrl: http://123.207.75.31:3000
  70. oneApikey: sk-O2keOgHXHXEuAo0TA79b3f6eAfBf4807B1491b2852702900
  71. # 角色聊天模型
  72. characterChatModel: Doubao-pro-32k
  73. # 绘画生成SD提示词模型
  74. drawSdPromptModel: Doubao-pro-32k
  75. # 对话工具和模板工具模型
  76. chatToolModel: Doubao-lite-32k
  77. draw:
  78. # 任务过期时间 5 * 60 * 1000L = 5min
  79. taskExpiredMillis: 300000
  80. # 任务超时时间 5 * 60 * 1000L = 5min
  81. taskTimeoutMillis: 300000
  82. # 如果当前用户有任务在队列,延迟2s后进入队列
  83. handlingDelayMillis: 2000
  84. # 轮询结果间隔 10s
  85. resultPollingIntervalMillis: 10000
  86. # 轮询识别结果超时时间 5 * 60 * 1000L = 5min
  87. resultPollingTimeoutMillis: 300000
  88. video:
  89. # 任务过期时间 60 * 60 * 1000L = 60min
  90. taskExpiredMillis: 3600000
  91. # 单个任务处理超时时间 45 * 60 * 1000L = 45min
  92. taskTimeoutMillis: 2700000
  93. # 如果当前用户有任务在队列,延迟2s后进入队列
  94. handlingDelayMillis: 2000
  95. # 轮询结果间隔 30s
  96. resultPollingIntervalMillis: 30000
  97. # 轮询识别结果超时时间 30 * 60 * 1000L = 30min
  98. resultPollingTimeoutMillis: 1800000
  99. # 同一用户最大提交任务数
  100. maxRunningTasks: 3
  101. # chatfire host
  102. chatfireHost: https://api.chatfire.cn
  103. # chatfire key
  104. chatfireKey: Bearer sk-Gk45jJdam8ZOGKmW00A9F11a7cF34e3f953b3eDb7b9a2eF8
  105. # hk host
  106. hkHost: https://api.openai-hk.com
  107. # hk key
  108. hkKey: Bearer hk-zcto63100003480674e262a3baf084fb92cc4df0df5c17d6
  109. # 多米 host
  110. duomiHost: http://duomiapi.com
  111. # 多米 key
  112. duomiKey: FmX6sRUWPGgV583tWrqo6vGMPF