spring:
  profiles:
    active: prod
  application:
    name: agentSkills
    version: 1.0.0
  mvc:
    pathmatch:
      matching-strategy: ANT_PATH_MATCHER
    static-path-pattern: /**
    date-format: yyyy-MM-dd HH:mm:ss
    favicon:
      enabled: true
    thymeleaf:
      encoding: UTF-8
      cache: false
      mode: HTML
      prefix: classpath:/templates/
      suffix: .html
  http:
    encoding:
      charset: UTF-8
      enabled: true
      force: true
  servlet:
    multipart:
      max-request-size: 20MB
      max-file-size: 20MB

  ai:
    deepseek:
      base-url: https://api.deepseek.com
      api-key: ${DEEPSEEK_API_KEY:sk-7334f88754a84a86abbd98fc907d3354}
      chat:
        model: deepseek-chat
        temperature: 0.3
        max-tokens: 500
    glm:
      base-url: https://open.bigmodel.cn/api/paas/v4
      api-key: ${GLM_API_KEY:57a566a125bb4492900db0578969f27d.JLpuGSzr9hhLurM7}
      chat:
        model: glm-4.6v
        temperature: 0.7
        max-tokens: 8192

# 包含公共配置文件
spring.config.import:
  - classpath:application-common.yml

springdoc:
  api-docs:
    enabled: true
    path: /v3/api-docs
  swagger-ui:
    enabled: true
    path: /doc.html
    layout: StandaloneLayout
    doc-expansion: none
  packages-to-scan: com.kexue.skills.controller

mybatis:
  mapper-locations: classpath:mapper/*.xml
  configuration:
    map-underscore-to-camel-case: true

pagehelper:
  helperDialect: mysql
  reasonable: true
  supportMethodsArguments: true
  params: count=countSql

# SMS4J 短信发送配置
sms:
  # 从 YAML 读取配置
  config-type: YAML
  http-log: true
  is-print: false
  blends:
    alibaba:
      # 短信厂商
      supplier: alibaba
      requestUrl: dysmsapi.aliyuncs.com
      access-key-id: LTAI5t8rsaBDrno4xd4F6EwE
      access-key-secret: QNmjxatrgzBYukAKr8BZ4r7gd37SHw
      signature: 武汉可学智能科技
      # 阿里云短信模板ID，需要替换为实际申请的模板ID
      template-id: SMS_493720484  # 实际使用时请替换为真实模板ID
      # 短信模板变量名，对应验证码的变量
      template-param-name: code
      template-cache: true

# 上传配置
web:
  upload:
    path: /kexue/agentSkills/upload/

