imageConfig;不要改成 Google 新版示例中的 responseFormat.image。{
"responseModalities": [
"TEXT"
],
"imageConfig": {
"aspectRatio": "1:1",
"imageSize": "1K"
},
"thinkingConfig": {
"includeThoughts": false,
"thinkingBudget": 0,
"thinkingLevel": "THINKING_LEVEL_UNSPECIFIED"
},
"candidateCount": 1,
"maxOutputTokens": 1,
"temperature": 0,
"topP": 0,
"topK": 1,
"seed": 0,
"stopSequences": [
"string"
],
"mediaResolution": "MEDIA_RESOLUTION_UNSPECIFIED"
}