feat(P0-A): 整合第一版并冻结最终发布 #1
@@ -73,7 +73,10 @@ export function buildProviderRequest({ modelConfig, prompt, ratio, reference })
|
||||
return {
|
||||
body: {
|
||||
contents: [{ parts, role: "user" }],
|
||||
generationConfig: { imageConfig: { aspectRatio: ratio }, responseModalities: ["TEXT", "IMAGE"] },
|
||||
generationConfig: {
|
||||
responseFormat: { image: { aspectRatio: ratio, imageSize: "1K" } },
|
||||
responseModalities: ["IMAGE"],
|
||||
},
|
||||
},
|
||||
headers,
|
||||
method: "POST",
|
||||
|
||||
Reference in New Issue
Block a user