Gemini imageConfig parameters
| 243 | |
| 244 | |
| 245 | class ImageConfig(BaseModel): |
| 246 | """Gemini imageConfig parameters""" |
| 247 | |
| 248 | aspectRatio: Optional[str] = None # "16:9", "9:16", "1:1", "4:3", "3:4" |
| 249 | imageSize: Optional[str] = None # "2k", "4k" |
| 250 | |
| 251 | # 兼容 OpenAI/NewAPI 等上游可能透传的 size/quality 或 snake_case 字段 |
| 252 | model_config = ConfigDict(extra="allow") |
| 253 | |
| 254 | |
| 255 | class GenerationConfigParam(BaseModel): |
nothing calls this directly
no outgoing calls
no test coverage detected