AI 业务逻辑初始化

This commit is contained in:
wangxiangshun
2025-10-04 13:56:50 +08:00
parent 6ab8d3d252
commit 51c27865f0
20 changed files with 845 additions and 1420 deletions

View File

@@ -40,9 +40,9 @@ spring:
druid:
# 主库数据源
master:
url: jdbc:mysql://test.hotake.cn:13306/htk-vetti?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
username: root
password: Hamkke@2021
url: jdbc:mysql://13.211.168.80:3306/vetti_service?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
username: vetti_service
password: Hotake@2025
# 从库数据源
slave:
# 从数据源开关/默认关闭
@@ -96,13 +96,13 @@ spring:
# redis 配置
redis:
# 地址
host: localhost
host: 127.0.0.1
# 端口默认为6379
port: 6379
# 数据库索引
database: 0
# 密码
password: Hamkke@2021
password:
# 连接超时时间
timeout: 10s
lettuce:
@@ -123,6 +123,7 @@ fs:
max-file-size: 104857600 #字节Byte
bucket-name.: # 存储桶名称(提前在 MinIO 控制台创建)
system-fs: system-fs
# Twilio SendGrid 配置
twilio:
sendgrid:
@@ -141,12 +142,25 @@ verification:
length: 5
# 验证码过期时间(分钟)
expiration-minutes: 10
# 文本转语音
elevenLabs:
baseUrl: https://api.elevenlabs.io/v1
apiKey: sk_5240d8f56cb1eb5225fffcf903f62479884d1af5b3de6812
modelId: eleven_monolingual_v1
# 语音转文本
whisper:
apiUrl: https://api.openai.com/v1/audio/transcriptions
model: whisper-1
apiKey: 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
language: zh
# AI 聊天
chatGpt:
apiKey:
apiUrl: https://api.openai.com/v1/chat/completions
model: gpt-3.5-turbo
role: user
here-map:
api-key: q1gsOSZ899P8dVaoW2HZXq40W-AqCwB6iON5tw7-sqI
geocoding-api-url: https://geocode.search.hereapi.com/v1/geocode
reverse-geocoding-api-url: https://revgeocode.search.hereapi.com/v1/revgeocode
router-api-url: https://router.hereapi.com/v8/routes
http:
client: