Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
PDF解析器配置说明
概述
配置结构
customPdfParse现在是一个数组类型,每个解析器包含以下字段:{ "systemEnv": { "customPdfParse": [ { "name": "解析器名称", "desc": "解析器描述", "url": "解析器API地址(可选)", "key": "API密钥(可选)", "doc2xKey": "Doc2x API密钥(可选)", "price": "每页价格", "extension": "支持的文件扩展名,用逗号分隔" } ] } }前端变化
知识库配置
应用配置
数据库变化
customPdfParse字段从Boolean类型改为String类型,存储选中的解析器名称API变化
/api/system/getPdfParsers接口,用于获取可用的PDF解析器列表/api/admin/migratePdfParseConfig接口,用于将历史数据中使用了pdf解析的数据修改为数组的第一个解析器customPdfParse参数的API,参数类型从boolean改为string