39 lines
764 B
YAML
39 lines
764 B
YAML
|
|
# 图片识别配置
|
||
|
|
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
|