Skip to content

fix(tool): support b64_json image generation results#58

Open
wucm667 wants to merge 1 commit into
volcengine:mainfrom
wucm667:fix/image-generate-b64-json
Open

fix(tool): support b64_json image generation results#58
wucm667 wants to merge 1 commit into
volcengine:mainfrom
wucm667:fix/image-generate-b64-json

Conversation

@wucm667
Copy link
Copy Markdown
Contributor

@wucm667 wucm667 commented Apr 25, 2026

Summary

  • support b64_json image generation results by decoding and uploading them to TOS
  • return the generated TOS URL in ImageResult.Url
  • add optional TosConfig to ImageGenerateConfig
  • treat empty image outputs as errors
  • fix task index capture in concurrent image generation workers

Tests

  • GOCACHE=/tmp/veadk-go-build-cache go test -mod=readonly ./tool/builtin_tools -run 'TestNewImageGenerateTool|TestImageGenerateToolHandler|TestDecodeImageGenerateB64|TestBuildImageGenerateObjectKey|TestUploadImageGenerateB64Result'
  • GOCACHE=/tmp/veadk-go-build-cache go test -mod=readonly ./tool/builtin_tools
  • GOCACHE=/tmp/veadk-go-build-cache go test -mod=readonly -race ./tool/builtin_tools -run 'TestDecodeImageGenerateB64|TestBuildImageGenerateObjectKey|TestUploadImageGenerateB64Result'

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.

1 participant