Skip to content

Conversation

@PasserByJia
Copy link
Contributor

变更类型

  • 新功能(feat)
  • 修复(fix)
  • 文档(docs)
  • 重构(refactor)

变更描述- 简要说明修改内容

  • 将视觉模型使用的 canvas 转换成预编译版本@napi-rs/canvas,防止因本地编译导致的一些问题
  • 解决客户端视觉模型pdf to markdown 的功能无法使用的问题
  • pdf文件处理集成进任务系统,现在能在后台任务处理pdf文件,并且可以看到每个文件的实时进度

文档更新

  • README.md
  • 贡献指南
  • 接口文档(如有)

package.json Outdated
"@opendocsg/pdf2md": "^0.2.1",
"@openrouter/ai-sdk-provider": "^0.4.5",
"@prisma/client": "^6.6.0",
"@tiny-tool/pdf2md": "^2.0.0",
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里不要改包名 ,你可以研究下这个包的改动,合并到以前的包上

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

嗯嗯,没问题的

"@commitlint/config-conventional": "^19.8.0",
"concurrently": "^8.2.2",
"electron": "^29.4.6",
"electron": "^35.0.0",
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

升级到 35 主要解决了什么问题?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

改用预编译的canvas有一些包导入的兼容性问题,最低要nodejs v20 才能运行。我在官网查的是 35 是 electron支持nodejs v20 ,并且还在维护的最低版本。

// 更新任务进度
await updateTask(task.id, {
status: 1,
detail: `${strategy}策略处理成功`+ JSON.stringify({
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

返回到前端的状态没法做国际化,默认都用英文

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok。这里我注意一下

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants