```
All checks were successful
Deploy Vue App / build-and-deploy (push) Successful in 9s

feat(llm): 添加AI智能分析配置功能

新增LLM配置模块,支持通过阿里云DashScope API进行招标金额的智能提取。
配置包括API Key、Base URL、模型选择等,并提供启用开关。
前端界面增加“AI配置”标签页,包含状态展示、配置表单及测试连接功能。
后端增强parseDetailEnhanced方法,优先使用LLM提取金额,失败时降级至正则表达式。
同时实现LLM状态查询与连接测试接口,确保配置有效性。
配置文件中新增llm字段,默认关闭,支持安全存储API密钥。
```
This commit is contained in:
2025-12-15 17:49:11 +08:00
parent f797ed9a61
commit 6fc9748009
6 changed files with 562 additions and 7 deletions

View File

@@ -17,5 +17,11 @@
"smtpUser": "your-email@example.com",
"smtpPass": "your-password",
"recipients": "recipient1@example.com,recipient2@example.com"
},
"llm": {
"enabled": false,
"apiKey": "",
"baseUrl": "https://dashscope.aliyuncs.com/compatible-mode/v1",
"model": "qwen-turbo"
}
}