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

Class NormalizedGenerationRequest

src/api/routes.py:75–82  ·  view source on GitHub ↗

Internal request shape shared by OpenAI and Gemini entrypoints.

Source from the content-addressed store, hash-verified

73
74@dataclass
75class NormalizedGenerationRequest:
76 """Internal request shape shared by OpenAI and Gemini entrypoints."""
77
78 model: str
79 prompt: str
80 images: List[bytes]
81 messages: Optional[List[ChatMessage]] = None
82 video_media_id: Optional[str] = None
83
84
85def set_generation_handler(handler: GenerationHandler):

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected