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密钥。 ```
28 lines
666 B
JSON
28 lines
666 B
JSON
{
|
|
"scheduler": {
|
|
"enabled": true,
|
|
"cronTime": "0 9 * * *",
|
|
"threshold": 100000,
|
|
"description": "每天9点采集大于10亿的项目",
|
|
"timeRange": "thisMonth",
|
|
"pushRules": {
|
|
"urgentThreshold": 500000,
|
|
"urgentPush": false,
|
|
"summaryPush": true
|
|
}
|
|
},
|
|
"email": {
|
|
"smtpHost": "smtp.example.com",
|
|
"smtpPort": 587,
|
|
"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"
|
|
}
|
|
}
|