添加图片识别千问大模型
This commit is contained in:
38
klp-wms/src/main/resources/application-image-recognition.yml
Normal file
38
klp-wms/src/main/resources/application-image-recognition.yml
Normal file
@@ -0,0 +1,38 @@
|
||||
# 图片识别配置
|
||||
image:
|
||||
recognition:
|
||||
# AI API配置
|
||||
api-url: https://api.siliconflow.cn/v1/chat/completions
|
||||
model-name: Qwen/Qwen2.5-VL-32B-Instruct
|
||||
api-key: sk-sbmuklhrcxqlsucufqebiibauflxqfdafqjxaedtwirurtrc
|
||||
max-retries: 3
|
||||
temperature: 0.0
|
||||
max-tokens: 4096
|
||||
|
||||
# 图片处理配置
|
||||
max-image-dimension: 512
|
||||
image-quality: 60
|
||||
|
||||
# 识别配置
|
||||
default-recognition-type: bom
|
||||
enable-voting: true
|
||||
voting-rounds: 3
|
||||
|
||||
# 支持的图片格式
|
||||
supported-formats:
|
||||
- jpg
|
||||
- jpeg
|
||||
- png
|
||||
- bmp
|
||||
- gif
|
||||
|
||||
# 超时配置
|
||||
connect-timeout: 30000
|
||||
read-timeout: 60000
|
||||
|
||||
# 缓存配置
|
||||
enable-cache: true
|
||||
cache-ttl: 3600
|
||||
|
||||
# 日志配置
|
||||
enable-debug-log: false
|
||||
Reference in New Issue
Block a user