feat(novita): MidJourney request shapes (mj-txt2img + 7 edit/ops)#16
Closed
duanbing wants to merge 1 commit into
Closed
feat(novita): MidJourney request shapes (mj-txt2img + 7 edit/ops)#16duanbing wants to merge 1 commit into
duanbing wants to merge 1 commit into
Conversation
8 NovitaRequestShape variants for /v3/async/mj-*: text-to-image (prompt->text), variation, upscale, reroll, outpaint, inpaint, remix, remove-background. The edit/op shapes carry no top-level prompt (act on a prior task_id/image_no or a url), so build_body makes prompt optional for them; their task/image refs and mask/scale/type/mode params pass through the per-shape allow-list. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
I have read the Contributor License Agreement (CLA) and hereby sign the CLA. You can retrigger this bot by commenting recheck in this Pull Request. Posted by the CLA Assistant Lite bot. |
Author
|
Descoping MidJourney — closing. |
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.
Adds 8
NovitaRequestShapevariants for the Novita/PPIO/v3/async/mj-*MidJourney endpoints, consumed by RouterBase'smidjourneymodel family.Shapes
text(MJ's field; MJ flags like--ar/--stylizeride inside the text). Resolves to a 4-image grid.task_id+image_no); they carry no top-level prompt, sobuild_bodymakes prompt optional for them. Theirtask_id/image_no/type/mode/scale/remix_promptpass through the per-shape allow-list.urlonly.Post-processing
image_no/type/modeand float-coercescale(RouterBase's media surface may ship them as strings; Novita's mj-* schemas are strict).maskimage URL into the{url}object Novita expects (the common B/W-mask case; polygonareasdeferred).cargo check+cargo fmtclean. Single self-contained change tonovita.rs.