fix(runware): async API delivery and model-specific dimensions#152
Merged
fix(runware): async API delivery and model-specific dimensions#152
Conversation
Switch from synchronous requests to async delivery method to avoid timeouts on slower image generation models. The client now submits tasks with deliveryMethod: "async" and polls for results using the getResponse task type.
…edream4 NanoBanana2Pro and Seedream4 have specific dimension requirements that don't match the generic ASPECT_RATIO_MAP. Using incorrect dimensions (e.g., 1344x768 for 16:9) caused API errors. - NanoBanana2Pro: Add custom dimension map with API-required values (e.g., 16:9 is 1376x768, not 1344x768) - NanoBanana2Pro I2I: Add resolution parameter for auto aspect detection - Seedream4: Use 2K dimensions since 1K only supports 1:1 aspect ratio
Add documentation for models that require specific dimension combinations instead of the generic ASPECT_RATIO_MAP values: - api-patterns.md: Add warning about model-specific dimensions - implementation-notes.md: Add dimension tables for NanoBanana2Pro, Seedream 4.0, and Seedream 4.5
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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
Changes
Async API Delivery
deliveryMethod: "async"with polling for image generationDimension Fixes
resolution: '2k'parameter for auto aspect ratio detectionDocumentation
Test plan