ai-robot-channel/src/main/resources/application.yml

68 lines
1.3 KiB
YAML
Raw Normal View History

2026-02-23 01:45:23 +00:00
server:
port: 8883
2026-02-23 01:45:23 +00:00
spring:
application:
name: wecom-robot
profiles:
active: dev
flyway:
enabled: true
locations: classpath:db/migration
baseline-on-migrate: true
baseline-version: 0
validate-on-migrate: true
2026-02-23 01:45:23 +00:00
mybatis-plus:
mapper-locations: classpath:mapper/*.xml
type-aliases-package: com.wecom.robot.entity
configuration:
map-underscore-to-camel-case: true
wecom:
kf:
callback-url: /wecom/callback
transfer:
enabled: false
2026-02-23 01:45:23 +00:00
keywords:
- 人工
- 转人工
- 投诉
- 客服
- 人工客服
confidence-threshold: 0.35
2026-02-23 01:45:23 +00:00
max-fail-rounds: 3
max-session-duration: 180000000
2026-02-23 01:45:23 +00:00
max-message-rounds: 50
ai-service:
url: http://ashai.com.cn:8182
timeout: 30000
tenantId: szmp@ash@2026
apiKey: tDXu09--IZutcI2h06DCR5WkK9Oi9waTKyUxhaxl5oE
channel:
default-channel: wechat
adapters:
wechat:
enabled: true
douyin:
enabled: false
jd:
enabled: false
resilience4j:
circuitbreaker:
instances:
aiService:
failure-rate-threshold: 50
sliding-window-size: 10
sliding-window-type: COUNT_BASED
wait-duration-in-open-state: 30s
permitted-number-of-calls-in-half-open-state: 3
timelimiter:
instances:
aiService:
timeout-duration: 5s