fix(wp7-02): use current Gemini image response contract
Dada P0-A isolated Windows CI / validate-and-package (push) Failing after 1m53s
Dada P0-A isolated Windows CI / validate-and-package (push) Failing after 1m53s
This commit is contained in:
@@ -73,7 +73,10 @@ export function buildProviderRequest({ modelConfig, prompt, ratio, reference })
|
|||||||
return {
|
return {
|
||||||
body: {
|
body: {
|
||||||
contents: [{ parts, role: "user" }],
|
contents: [{ parts, role: "user" }],
|
||||||
generationConfig: { imageConfig: { aspectRatio: ratio }, responseModalities: ["TEXT", "IMAGE"] },
|
generationConfig: {
|
||||||
|
responseFormat: { image: { aspectRatio: ratio, imageSize: "1K" } },
|
||||||
|
responseModalities: ["IMAGE"],
|
||||||
|
},
|
||||||
},
|
},
|
||||||
headers,
|
headers,
|
||||||
method: "POST",
|
method: "POST",
|
||||||
|
|||||||
Reference in New Issue
Block a user