|
| 1 | +import { describe, expect, it } from "vite-plus/test"; |
| 2 | + |
| 3 | +import { composerModelLabel } from "./modelLabel.ts"; |
| 4 | + |
| 5 | +describe("composerModelLabel", () => { |
| 6 | + it.each([ |
| 7 | + ["Nemotron 3.5 Super VL Free", "Nemotron 3.5 Super"], |
| 8 | + ["Ox Alpha Free (Unlimited)", "Ox Alpha"], |
| 9 | + ["DeepSeek V4 Flash Vision Exp", "DeepSeek V4 Flash"], |
| 10 | + ["LongCat 2.5 Preview Free", "LongCat 2.5"], |
| 11 | + ["4 Argon Contributor", "4 Argon Contributor"], |
| 12 | + ["Nemotron 3 Nano Omni (free)", "Nemotron 3 Nano Omni"], |
| 13 | + ["Nano Banana 2 Lite (Gemini 3.1 Flash Lite Image)", "Nano Banana 2 Lite"], |
| 14 | + ["GPT-OSS (Vertex AI (OpenAI-compatible))", "GPT-OSS"], |
| 15 | + ["NVIDIA: Nemotron 3.5 Lightning Free", "Nemotron 3.5 Lightning"], |
| 16 | + ["3.1 Pro Preview Custom Tools", "3.1 Pro"], |
| 17 | + ["Qwen3 235B-A22B Thinking 2507", "Qwen3 235B"], |
| 18 | + ["Qwen3-Next 80B-A3B (Thinking)", "Qwen3-Next 80B"], |
| 19 | + ["Nemotron 3 Nano Omni 30B A3B Reasoning", "Nemotron 3 Nano Omni"], |
| 20 | + ["Qwen3 Coder 480B A35B Instruct Turbo", "Qwen3 Coder"], |
| 21 | + ["Llama 4 Maverick 17B Instruct (US)", "Llama 4 Maverick"], |
| 22 | + ["DeepSeek V4.1 Flash 1017 Spot", "DeepSeek V4.1 Flash"], |
| 23 | + ["GLM Flash Latest (GLM 5.3 Flash)", "GLM Flash"], |
| 24 | + ["Grok 4.20 (Non-Reasoning)", "Grok 4.20"], |
| 25 | + ["4.1 Fast Non-Reasoning", "4.1 Fast"], |
| 26 | + ["3.1 Flash Image Preview (Nano Banana 2)", "3.1 Flash Image"], |
| 27 | + ["Gemini 2.5 Flash Preview (09/2025) – Thinking", "Gemini 2.5 Flash"], |
| 28 | + ["Opus 5.5", "Opus 5.5"], |
| 29 | + ["GPT-5.5", "GPT-5.5"], |
| 30 | + ["Grok 4", "Grok 4"], |
| 31 | + ["Thinking", "Thinking"], |
| 32 | + ["(Preview)", "(Preview)"], |
| 33 | + ])("labels %s as %s", (name, label) => { |
| 34 | + expect(composerModelLabel(name)).toBe(label); |
| 35 | + }); |
| 36 | +}); |
0 commit comments