fix: set response_format as b64_json
This commit is contained in:
@@ -191,6 +191,23 @@ export const ImageSizeConfig: ParamsSchema[] = [
|
|||||||
required: false
|
required: false
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
type: 'Select',
|
||||||
|
name: 'response_format',
|
||||||
|
formItemAttrs: {
|
||||||
|
hidden: true
|
||||||
|
},
|
||||||
|
options: [{ label: 'b64_json', value: 'b64_json' }],
|
||||||
|
label: {
|
||||||
|
text: 'Response Format',
|
||||||
|
isLocalized: false
|
||||||
|
},
|
||||||
|
rules: [
|
||||||
|
{
|
||||||
|
required: false
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|||||||
@@ -70,6 +70,7 @@ export const openaiCompatibleFieldsDefaultValus = {
|
|||||||
export const imgInitialValues = {
|
export const imgInitialValues = {
|
||||||
n: 1,
|
n: 1,
|
||||||
size: '512x512',
|
size: '512x512',
|
||||||
|
response_format: 'b64_json',
|
||||||
width: 512,
|
width: 512,
|
||||||
height: 512
|
height: 512
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user