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

Function _build_model_description

src/api/routes.py:97–104  ·  view source on GitHub ↗

Build a human-readable description for model listing endpoints.

(model_config: Dict[str, Any])

Source from the content-addressed store, hash-verified

95
96
97def _build_model_description(model_config: Dict[str, Any]) -> str:
98 """Build a human-readable description for model listing endpoints."""
99 description = f"{model_config['type'].capitalize()} generation"
100 if model_config["type"] == "image":
101 description += f" - {model_config['model_name']}"
102 else:
103 description += f" - {model_config['model_key']}"
104 return description
105
106
107def _get_openai_model_catalog() -> List[Dict[str, str]]:

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected