MCPcopy Create free account
hub / github.com/TheSmallHanCat/flow2api / ImageConfig

Class ImageConfig

src/core/models.py:245–252  ·  view source on GitHub ↗

Gemini imageConfig parameters

Source from the content-addressed store, hash-verified

243
244
245class 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
255class GenerationConfigParam(BaseModel):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected