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

Class GeminiGenerateContentRequest

src/core/models.py:295–302  ·  view source on GitHub ↗

Gemini official generateContent request.

Source from the content-addressed store, hash-verified

293
294
295class GeminiGenerateContentRequest(BaseModel):
296 """Gemini official generateContent request."""
297
298 contents: List[GeminiContent]
299 generationConfig: Optional[GenerationConfigParam] = None
300 systemInstruction: Optional[GeminiContent] = None
301
302 model_config = ConfigDict(extra="allow")
303
304
305class ChatCompletionRequest(BaseModel):

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected