(context: SpecialDescriptionContext)
| 111 | } |
| 112 | |
| 113 | function specialDescription(context: SpecialDescriptionContext) { |
| 114 | const { lab, target, input, output, multimodal, fast, frontier, model } = context; |
| 115 | |
| 116 | if (has(target, /\b(auto|router|route)\b/) && lab !== "openrouter") { |
| 117 | return "Automatic model router for matching prompts to suitable backends and budgets"; |
| 118 | } |
| 119 | |
| 120 | if (has(target, /\b(embed|embedding|e5)\b/)) { |
| 121 | return "Embedding model for semantic search, retrieval, clustering, and ranking pipelines"; |
| 122 | } |
| 123 | if (has(target, /\b(rerank|reranker)\b/)) { |
| 124 | return "Reranking model for improving retrieval quality in search and recommendation systems"; |
| 125 | } |
| 126 | if (has(target, /\b(safety|guard|moderation|safeguard)\b/)) { |
| 127 | return "Safety model for policy screening, moderation, and risk-aware routing workflows"; |
| 128 | } |
| 129 | if (has(target, /\b(ocr|document-ocr)\b/)) { |
| 130 | return "OCR model for extracting structured text from documents and screenshots"; |
| 131 | } |
| 132 | if (has(target, /\b(translate|translation|mt)\b/)) { |
| 133 | return "Translation model for multilingual conversion, localization, and cross-language workflows"; |
| 134 | } |
| 135 | if (has(target, /\b(asr|stt|transcribe|transcription|whisper)\b/)) { |
| 136 | return "Speech transcription model for accurate audio-to-text and captioning workflows"; |
| 137 | } |
| 138 | if (has(target, /\bomni\b/)) { |
| 139 | if (has(target, /\bqwen\b/)) return qwenDescription(context); |
| 140 | if (has(target, /\bmimo\b/)) return mimoDescription(context); |
| 141 | return "Omni-modal model for text, vision, audio, and multimodal agent tasks"; |
| 142 | } |
| 143 | if (has(target, /\b(tts|speech|voice|voiceclone|voicedesign)\b/) || (input.includes("text") && output.includes("audio"))) { |
| 144 | return "Speech generation model for controllable voice, narration, and audio delivery"; |
| 145 | } |
| 146 | if (has(target, /\b(image|imagine|imagen|flux|sdxl|stable-diffusion)\b/) || output.includes("image")) { |
| 147 | return "Image model for prompt-driven generation, editing, and visual design workflows"; |
| 148 | } |
| 149 | if (has(target, /\b(video|veo|sora|ray|hailuo|kling)\b/) || output.includes("video")) { |
| 150 | return "Video model for prompt-guided generation, editing, and motion workflows"; |
| 151 | } |
| 152 | |
| 153 | if (lab === "openai" || has(target, /\b(gpt|openai|whisper)\b|(^|[^a-z])o\d/)) { |
| 154 | return openAIDescription(context); |
| 155 | } |
| 156 | if (lab === "anthropic" || has(target, /\bclaude\b/)) return anthropicDescription(context); |
| 157 | if (lab === "google" || has(target, /\b(gemini|gemma)\b/)) return googleDescription(context); |
| 158 | if (lab === "mistral" || has(target, /\b(mistral|codestral|devstral|magistral|pixtral|ministral)\b/)) { |
| 159 | return mistralDescription(context); |
| 160 | } |
| 161 | if (lab === "alibaba" || has(target, /\b(qwen|qwq)\b/)) return qwenDescription(context); |
| 162 | if (lab === "deepseek" || has(target, /\bdeepseek\b/)) return deepSeekDescription(context); |
| 163 | if (lab === "xai" || has(target, /\bgrok\b/)) return xaiDescription(context); |
| 164 | if (lab === "minimax" || has(target, /\bminimax\b/)) return miniMaxDescription(context); |
| 165 | if (lab === "nvidia" || has(target, /\bnemotron\b/)) return nvidiaDescription(context); |
| 166 | if (lab === "meta" || has(target, /\bllama\b/)) return metaDescription(context); |
| 167 | if (lab === "zhipuai" || lab === "zai" || has(target, /\bglm\b/)) return glmDescription(context); |
| 168 | if (lab === "moonshotai" || has(target, /\bkimi\b/)) return kimiDescription(context); |
| 169 | if (lab === "xiaomi" || has(target, /\bmimo\b/)) return mimoDescription(context); |
| 170 | if (lab === "stepfun" || has(target, /\bstep[-\s]?\d/)) return stepDescription(context); |
no test coverage detected