use super::ModelId;

impl ModelId {
    /// Get the display name for the model (human-readable)
    pub fn display_name(&self) -> &'static str {
        if let Some(meta) = self.openrouter_metadata() {
            return meta.display;
        }
        match self {
            // Gemini models
            ModelId::Gemini31ProPreview => "Gemini 3.1 Pro Preview",
            ModelId::Gemini31ProPreviewCustomTools => "Gemini 3.1 Pro Preview (Custom Tools)",
            ModelId::Gemini31FlashLitePreview => "Gemini 3.1 Flash Lite Preview",
            ModelId::Gemini35Flash => "Gemini 3.5 Flash",
            // OpenAI models
            ModelId::GPT55 => "GPT-5.5",
            ModelId::GPT54 => "GPT-5.4",
            ModelId::GPT54Pro => "GPT-5.4 Pro",
            ModelId::GPT54Nano => "GPT-5.4 Nano",
            ModelId::GPT54Mini => "GPT-5.4 Mini",
            ModelId::GPT53Codex => "GPT-5.3 Codex",
            ModelId::OpenAIGptOss20b => "GPT-OSS 20B",
            ModelId::OpenAIGptOss120b => "GPT-OSS 120B",
            // Anthropic models
            ModelId::ClaudeOpus48 => "Claude Opus 4.8",
            ModelId::ClaudeSonnet46 => "Claude Sonnet 4.6",
            ModelId::ClaudeHaiku45 => "Claude Haiku 4.5",
            ModelId::ClaudeMythosPreview => "Claude Mythos Preview",
            ModelId::CopilotAuto => "GitHub Copilot Auto",
            ModelId::CopilotGPT52Codex => "GitHub Copilot GPT-5.2 Codex",
            ModelId::CopilotGPT51CodexMax => "GitHub Copilot GPT-5.1 Codex Max",
            ModelId::CopilotGPT54 => "GitHub Copilot GPT-5.4",
            ModelId::CopilotGPT54Mini => "GitHub Copilot GPT-5.4 Mini",
            ModelId::CopilotClaudeSonnet46 => "GitHub Copilot Claude Sonnet 4.6",
            // DeepSeek models
            ModelId::DeepSeekV4Pro => "DeepSeek V4 Pro",
            ModelId::DeepSeekV4Flash => "DeepSeek V4 Flash",
            // Mistral models
            ModelId::MistralLarge3 => "Mistral Large 3",
            // MiMo models
            ModelId::MiMoV25Pro => "MiMo V2.5 Pro",
            ModelId::MiMoV25 => "MiMo V2.5",
            // Z.AI models
            ModelId::ZaiGlm5 => "GLM 5",
            ModelId::ZaiGlm51 => "GLM 5.1",
            // Qwen models
            ModelId::Qwen37Max => "Qwen 3.7 Max",
            ModelId::Qwen36Flash => "Qwen 3.6 Flash",
            ModelId::Qwen36Plus => "Qwen 3.6 Plus",
            ModelId::QwenDeepSeekV4Flash => "DeepSeek V4 Flash (Qwen)",
            ModelId::QwenDeepSeekV4Pro => "DeepSeek V4 Pro (Qwen)",
            ModelId::QwenGlm51 => "GLM-5.1 (Qwen)",
            // Ollama models
            ModelId::OllamaGptOss20b => "GPT-OSS 20B (local)",
            ModelId::OllamaGptOss20bCloud => "GPT-OSS 20B (cloud)",
            ModelId::OllamaGptOss120bCloud => "GPT-OSS 120B (cloud)",
            ModelId::OllamaQwen317b => "Qwen3 1.7B (local)",
            ModelId::OllamaQwen3CoderNext => "Qwen3-Coder-Next (cloud)",
            ModelId::OllamaDeepseekV4FlashCloud => "DeepSeek V4 Flash (cloud)",
            ModelId::OllamaDeepseekV4ProCloud => "DeepSeek V4 Pro (cloud)",
            ModelId::OllamaQwen3Next80bCloud => "Qwen3 Next 80B (cloud)",
            ModelId::OllamaGemini3FlashPreviewCloud => "Gemini 3 Flash Preview (cloud)",
            ModelId::OllamaMinimaxM2Cloud => "MiniMax-M2 (cloud)",
            ModelId::OllamaMinimaxM27Cloud => "MiniMax-M2.7 (cloud)",
            ModelId::OllamaGlm5Cloud => "GLM-5 (cloud)",
            ModelId::OllamaGlm51Cloud => "GLM-5.1 (cloud)",
            ModelId::OllamaMinimaxM25Cloud => "MiniMax-M2.5 (cloud)",
            ModelId::OllamaKimiK26Cloud => "Kimi-K2.6 (cloud)",
            ModelId::OllamaNemotron3SuperCloud => "Nemotron-3-Super (cloud)",
            ModelId::OllamaLagunaXs2 => "Laguna XS.2 (local)",
            ModelId::LlamaCppQwen3627b => "Qwen 3.6 27B (llama.cpp)",
            ModelId::LlamaCppQwen3635bA3b => "Qwen 3.6 35B A3B (llama.cpp)",
            ModelId::LlamaCppGemma426bA4b => "Gemma 4 26B A4B (llama.cpp)",
            ModelId::LlamaCppGemma4E4b => "Gemma 4 E4B (llama.cpp)",
            ModelId::LlamaCppGptOss20b => "GPT-OSS 20B (llama.cpp)",
            ModelId::LlamaCppStep35Flash => "Step 3.5 Flash (llama.cpp)",
            // Hugging Face models
            ModelId::HuggingFaceOpenAIGptOss20b => "GPT-OSS 20B (HF)",
            ModelId::HuggingFaceOpenAIGptOss120b => "GPT-OSS 120B (HF)",
            ModelId::HuggingFaceMinimaxM25Novita => "MiniMax-M2.5 (Novita)",
            ModelId::HuggingFaceGlm5Novita => "GLM-5 (Novita)",
            ModelId::HuggingFaceGlm51ZaiOrg => "GLM-5.1 (zai-org)",
            ModelId::HuggingFaceQwen3CoderNextNovita => "Qwen3-Coder-Next (Novita)",
            ModelId::HuggingFaceQwen35397BA17BTogether => "Qwen3.5-397B-A17B (Together)",
            ModelId::HuggingFaceKimiK26Novita => "Kimi K2.6 (Novita)",
            ModelId::HuggingFaceDeepseekV4FlashNovita => "DeepSeek V4 Flash (Novita)",
            ModelId::HuggingFaceDeepseekV4ProTogether => "DeepSeek V4 Pro (Together)",
            ModelId::HuggingFaceStep35Flash => "Step 3.5 Flash (HF)",
            ModelId::StepFun37Flash => "Step 3.7 Flash",
            ModelId::OpenRouterMinimaxM25 => "MiniMax-M2.5 (OpenRouter)",
            ModelId::OpenRouterQwen3CoderNext => "Qwen3-Coder-Next (OpenRouter)",
            ModelId::OpenRouterMoonshotaiKimiK26 => "Kimi K2.6 (OpenRouter)",
            ModelId::OpenRouterZaiGlm51 => "GLM-5.1 (OpenRouter)",
            ModelId::OpenRouterOpenAIGpt55 => "OpenAI GPT-5.5 (OpenRouter)",
            // OpenRouter models
            ModelId::MinimaxM27 => "MiniMax-M2.7",
            ModelId::MinimaxM25 => "MiniMax-M2.5",
            // Poolside models
            ModelId::PoolsideLagunaM1 => "Laguna M.1",
            ModelId::PoolsideLagunaXs2 => "Laguna XS.2",
            // Moonshot models
            ModelId::MoonshotKimiK26 => "Kimi K2.6 (Moonshot)",
            // OpenCode Zen models
            ModelId::OpenCodeZenGPT54 => "GPT-5.4 (OpenCode Zen)",
            ModelId::OpenCodeZenGPT54Mini => "GPT-5.4 Mini (OpenCode Zen)",
            ModelId::OpenCodeZenClaudeSonnet46 => "Claude Sonnet 4.6 (OpenCode Zen)",
            ModelId::OpenCodeZenGlm51 => "GLM-5.1 (OpenCode Zen)",
            // OpenCode Go models
            ModelId::OpenCodeGoGlm51 => "GLM-5.1 (OpenCode Go)",
            ModelId::OpenCodeGoMinimaxM25 => "MiniMax-M2.5 (OpenCode Go)",
            ModelId::OpenCodeGoMinimaxM27 => "MiniMax-M2.7 (OpenCode Go)",
            // OpenRouter models
            _ => unreachable!(),
        }
    }
}
