加入ai大模型

This commit is contained in:
2025-08-02 13:12:56 +08:00
parent 21e354258e
commit 1845429fe2
17 changed files with 2721 additions and 0 deletions

View File

@@ -0,0 +1,54 @@
# 多模态分析功能配置示例
# 将此配置添加到你的 application.yml 或 application-dev.yml 中
# 多模态API配置
multimodal:
# API地址
api-url: https://api.siliconflow.cn/v1/chat/completions
# 模型名称
model-name: Qwen/Qwen2.5-VL-72B-Instruct
# API密钥
token: sk-sbmuklhrcxqlsucufqebiibauflxqfdafqjxaedtwirurtrc
# 日志配置
logging:
level:
com.klp.service.MultimodalService: DEBUG
com.klp.controller.MultimodalController: DEBUG
com.klp.utils.ImageUtils: DEBUG
# 服务器配置
server:
port: 8080
servlet:
context-path: /
# Spring配置
spring:
application:
name: klp-wms-multimodal
# 文件上传配置
servlet:
multipart:
max-file-size: 10MB
max-request-size: 10MB
# Jackson配置
jackson:
date-format: yyyy-MM-dd HH:mm:ss
time-zone: GMT+8
default-property-inclusion: non_null
# 线程池配置
thread:
pool:
core-size: 5
max-size: 10
queue-capacity: 100
keep-alive-seconds: 60
# 超时配置
timeout:
connect: 30000 # 连接超时 30秒
read: 60000 # 读取超时 60秒

View File

@@ -0,0 +1,56 @@
# 销售话术生成器配置
sales:
script:
ai:
# DeepSeek API配置
api-key: sk-5eb55d2fb2cc4fe58a0150919a1f0d70
base-url: https://api.deepseek.com/v1
model-name: deepseek-chat
max-retries: 3
temperature: 1.0
# 生成配置
generation:
# 默认话术数量
default-script-count: 5
# 批量处理大小
batch-size: 5
# 批次间延迟(毫秒)
delay-between-batches: 2000
# 客户类型配置
customer-types:
- 技术型客户
- 价格敏感型客户
- 质量优先型客户
- 批量采购客户
- 定制化需求客户
# 产品特性关键词
feature-keywords:
- 优质
- 高精度
- 耐用
- 稳定
- 可靠
- 先进
- 高效
- 节能
- 环保
- 安全
- 便捷
- 智能
# 技术参数模式
tech-patterns:
- 厚度
- 宽度
- 内径
- 长度
- 重量
- 密度
# 日志配置
logging:
level:
com.klp.service.impl.WmsSalesScriptGeneratorServiceImpl: DEBUG