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

Function _ensure_generation_handler

src/api/routes.py:91–94  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

89
90
91def _ensure_generation_handler() -> GenerationHandler:
92 if generation_handler is None:
93 raise HTTPException(status_code=500, detail="Generation handler not initialized")
94 return generation_handler
95
96
97def _build_model_description(model_config: Dict[str, Any]) -> str:

Callers 3

_iterate_openai_streamFunction · 0.85
_iterate_gemini_streamFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected