Build a human-readable description for model listing endpoints.
(model_config: Dict[str, Any])
| 95 | |
| 96 | |
| 97 | def _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 | |
| 107 | def _get_openai_model_catalog() -> List[Dict[str, str]]: |
no outgoing calls
no test coverage detected