Skip to content

feat(doubao): support upload#8302

Merged
xhofe merged 3 commits intoAlistGo:mainfrom
anobodys:feat/doubao_upload
Apr 12, 2025
Merged

feat(doubao): support upload#8302
xhofe merged 3 commits intoAlistGo:mainfrom
anobodys:feat/doubao_upload

Conversation

@anobodys
Copy link
Copy Markdown
Contributor

@anobodys anobodys commented Apr 5, 2025

为 豆包驱动 添加了上传功能,默认三线程。同时修复了下载接口的参数传值。

注意⚠️:目前豆包上传的图片文件,返回的下载地址都是压缩后的,并非源文件

注意⚠️:302模式下,使用获取的下载地址会出现文件名被编码,与源文件名对不上。使用本机代理可解决

@anobodys
Copy link
Copy Markdown
Contributor Author

anobodys commented Apr 9, 2025

修复了 #8335 提出的文件列表获取不完整

@xhofe xhofe requested a review from Copilot April 12, 2025 09:03
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

Comments suppressed due to low confidence (1)

drivers/doubao/driver.go:124

  • Ensure that r.Data.FileUrls contains at least one element before accessing its first element to prevent a potential index out of range error.
downloadUrl = r.Data.FileUrls[0].MainURL

Comment thread drivers/doubao/driver.go Outdated
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@xhofe xhofe merged commit f0b1aea into AlistGo:main Apr 12, 2025
8 checks passed
@dgscyg dgscyg mentioned this pull request May 26, 2025
4 tasks
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.

3 participants