feat: add authorized Seedance asset library - #16
Merged
lyz52789 merged 13 commits intoJul 13, 2026
Merged
Conversation
…n-Yescoin/new-api into feature/seedance-asset-library # Conflicts: # relay/channel/claude/relay-claude.go # relay/helper/stream_scanner.go
lyz52789
marked this pull request as ready for review
July 13, 2026 01:14
lyz52789
merged commit Jul 13, 2026
23a3de7
into
Open-Yescoin:agent/fix-responses-object-arguments
1 check passed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
LivenessFacegroup returned by BytePlus H5 consent/liveness verification, with ownership checks for all asset operationsasset://references in Seedance requests and retain regression coverage for Claude inline PDF/text conversionWhy
Seedance 2.0 does not accept ordinary public URLs containing real human faces. The supported flow is BytePlus H5 consent and liveness verification, followed by asset registration in the returned private
LivenessFacegroup and use of an activeasset://<id>reference during generation.The three Claude conversion failures were not caused by deprecated channels or unavailable models. They exposed a generic content-conversion regression: file parts were falling through the image path. The converter now handles PDF documents and plain text explicitly, skips unsupported binary files, and prevents unrelated non-text content from being treated as an image.
API and behavior
POST /doubao/open/CreateVisualValidateSessionPOST /doubao/open/GetVisualValidateResultPOST /doubao/open/ListAssetsPOST /doubao/open/GetAssetPOST /doubao/open/CreateAssetPOST /doubao/open/UpdateAssetPOST /doubao/open/DeleteAssetAll routes require new-api token authentication. Asset CRUD is unavailable until the current user has completed authorization, and detail/update/delete operations enforce group ownership.
Validation
go test ./... -count=1bun test src/volc-asset-setting-regression.test.mjsbun run buildasset://passthroughKnown tooling note
The repository's existing
i18n:syncandi18n:lintcommands currently fail before scanning sources becausei18next-cli@1.56.7loadsreact-i18next@17, which expectskeyFromSelectorfrom the installedi18next@23.16.8. The new keys were added to all configured locale catalogs manually, and the production build succeeds.