# set server port
server:
  port: 8101
  env: dev
  max-http-header-size: 8192
  servlet:
    session:
      timeout: 60s
  tomcat:
    max-connections: 5000
    max-threads: 500

# set enable swagger
swagger:
  enable: true

spring:
  # set mysql config
  datasource:
    url: jdbc:mysql://localhost:3306/webchat?useUnicode=true&characterEncoding=UTF-8&serverTimezone=GMT%2b8
    username: root
    password: 12345678
    driver-class-name: com.mysql.jdbc.Driver
    hikari:
      maximum-pool-size: 50
  jpa:
    show-sql: true
  # set redis config
  redis:
    host: 127.0.0.1
    port: 6379
    database: 0
    jedis:
      timeout: 5000
      pool:
        max-active: 100
        max-wait: -1
        min-idle: 10
  # elastic search config
  elasticsearch:
    message-index: chat_mess_dev
    rest:
      uris: # ES配置

# 大模型配置，应用于对话机器人
llm:
  config:
    # 当前开启使用哪个模型 kimi or deepseek
    model: kimi
    kimi:
      api-key: #替换为自己的kimi开发者apiKey
      model: moonshot-v1-8k
    deepseek:
      api-key: #替换为自己的deepseek开发者apiKey
      model: deepseek-chat
    liblib:
      accessKey: #替换为自己的liblib开发者accessKey
      SecretKey: #替换为自己的liblib开发者SecretKey