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

Function _get_gemini_model_catalog

src/api/routes.py:118–128  ·  view source on GitHub ↗

Collect Gemini-compatible model metadata for /models endpoints.

()

Source from the content-addressed store, hash-verified

116
117
118def _get_gemini_model_catalog() -> Dict[str, str]:
119 """Collect Gemini-compatible model metadata for /models endpoints."""
120 catalog: Dict[str, str] = {}
121
122 for alias_id, description in get_base_model_aliases().items():
123 catalog[alias_id] = description
124
125 for model_id, model_config in MODEL_CONFIG.items():
126 catalog.setdefault(model_id, _build_model_description(model_config))
127
128 return catalog
129
130
131def _build_gemini_model_resource(model_id: str, description: str) -> Dict[str, Any]:

Callers 2

list_gemini_modelsFunction · 0.85
get_gemini_modelFunction · 0.85

Calls 2

get_base_model_aliasesFunction · 0.85
_build_model_descriptionFunction · 0.85

Tested by

no test coverage detected