← Niche Catalog

code_generation

Modality: llm_chat · full deep dive — every ranked model, test result, and artifact.

31
Models
82
Benchmark Results
0
Media Artifacts
2
Resolutions

Ranked Models

Ranked by confidence-adjusted score (single/zero-sample, non-curated scores floored; curated empirical scores trusted as-is).

#ModelProviderAdj. ScoreRawEvidence
1claude-sonnet-4-6anthropic0.9200.920curated
2claude-opus-4-6anthropic0.8400.840curated
3claude-sonnet-4-5-20250929anthropic0.5300.530curated
4gemini-2.5-flashgoogle_gemini0.1200.800provisional (n≤1)
5gemini-2.5-progoogle_gemini0.1200.800provisional (n≤1)
6claude-haiku-4-5-20251001anthropic0.1200.800provisional (n≤1)
7gpt-4o-miniopenai0.1200.800provisional (n≤1)
8gpt-4oopenai0.1200.800provisional (n≤1)
9sonar-properplexity0.1200.800provisional (n≤1)
10Qwen/Qwen2.5-7B-Instruct-Turbotogether0.1200.800provisional (n≤1)
11command-r-08-2024cohere0.1200.800provisional (n≤1)
12gpt-4.1-miniopenai0.1200.800provisional (n≤1)
13sonarperplexity0.1200.800provisional (n≤1)
14deepseek-ai/DeepSeek-V3.1together0.1200.800provisional (n≤1)
15deepseek-reasonerdeepseek0.1200.800provisional (n≤1)
16grok-3-minixai0.1200.800provisional (n≤1)
17meta-llama/Llama-3.3-70B-Instruct-Turbotogether0.1200.800provisional (n≤1)
18grok-4xai0.1200.800provisional (n≤1)
19claude-opus-4-7anthropic0.1200.800provisional (n≤1)
20gpt-4.1openai0.1200.800provisional (n≤1)
21deepseek-ai/DeepSeek-R1together0.0750.500provisional (n≤1)
22grok-3xai0.0750.500provisional (n≤1)
23gpt-5.1openai0.0750.500provisional (n≤1)
24o4-miniopenai0.0750.500provisional (n≤1)
25gpt-5-nanoopenai0.0750.500provisional (n≤1)
26deepseek-chatdeepseek0.0000.000provisional (n≤1)
27mistral-large-latestmistral0.0000.000provisional (n≤1)
28mistral-small-latestmistral0.0000.000provisional (n≤1)
29magistral-small-latestmistral0.0000.000provisional (n≤1)
30gpt-5openai0.0000.000provisional (n≤1)
31gpt-5-miniopenai0.0000.000provisional (n≤1)

Test Results

Showing top 40 of 82 benchmark outputs by weighted score.

gpt-4.1-mini · openai · weighted 8.0 · typescript_validity=6, no_any_types=10 · $0.0 · 1718ms

```typescript function formatPrice(amount: number, currency: string): string { return new Intl.NumberFormat(undefined, { style: 'currency', currency, minimumFractionDigits: 2, maximumFractionDigits: 2, }).format(amount); } ```

claude-sonnet-4-6 · anthropic · weighted 8.0 · typescript_validity=6, no_any_types=10 · $0.0 · 1989ms

```typescript function formatPrice(amount: number, currency: string): string { return new Intl.NumberFormat("en-US", { style: "currency", currency: currency, minimumFractionDigits: 2, maximumFractionDigits: 2, }).format(amount); } ```

grok-3-mini · xai · weighted 8.0 · typescript_validity=6, no_any_types=10 · $4e-05 · 9059ms

```typescript function formatPrice(amount: number, currency: string): string { const formatter = new Intl.NumberFormat('en-US', { style: 'currency', currency: currency, }); return formatter.format(amount); } ```

gpt-4o · openai · weighted 8.0 · typescript_validity=6, no_any_types=10 · $0.000512 · 1433ms

```typescript function formatPrice(amount: number, currency: string): string { return new Intl.NumberFormat('en-US', { style: 'currency', currency }).format(amount); } ```

gpt-4.1-mini · openai · weighted 8.0 · typescript_validity=6, no_any_types=10 · $0.0 · 1199ms

```typescript function formatPrice(amount: number, currency: string): string { return new Intl.NumberFormat(undefined, { style: 'currency', currency, minimumFractionDigits: 2, maximumFractionDigits: 2, }).format(amount); } ```

mistral-small-latest · mistral · weighted 8.0 · typescript_validity=6, no_any_types=10 · $0.0 · 769ms

```typescript function formatPrice(amount: number, currency: string): string { const formatter = new Intl.NumberFormat('en-US', { style: 'currency', currency: currency, minimumFractionDigits: 2, maximumFractionDigits: 2, }); return formatter.format(amount); } ```

mistral-large-latest · mistral · weighted 8.0 · typescript_validity=6, no_any_types=10 · $0.0 · 1489ms

```typescript function formatPrice(amount: number, currency: string): string { const formattedAmount = new Intl.NumberFormat('en-US', { style: 'currency', currency, minimumFractionDigits: 2, maximumFractionDigits: 2, }).format(amount); return formattedAmount; } ```

gpt-4o-mini · openai · weighted 8.0 · typescript_validity=6, no_any_types=10 · $3.4e-05 · 1569ms

```typescript function formatPrice(amount: number, currency: string): string { return new Intl.NumberFormat('en-US', { style: 'currency', currency: currency, }).format(amount); } ```

gpt-4o · openai · weighted 8.0 · typescript_validity=6, no_any_types=10 · $0.000512 · 860ms

```typescript function formatPrice(amount: number, currency: string): string { return new Intl.NumberFormat('en-US', { style: 'currency', currency }).format(amount); } ```

sonar · perplexity · weighted 8.0 · typescript_validity=6, no_any_types=10 · $8.7e-05 · 1588ms

```typescript function formatPrice(amount: number, currency: string): string { return new Intl.NumberFormat('en-US', { style: 'currency', currency: currency }).format(amount); } ```

claude-sonnet-4-6 · anthropic · weighted 8.0 · typescript_validity=6, no_any_types=10 · $0.0 · 2348ms

```typescript function formatPrice(amount: number, currency: string): string { return new Intl.NumberFormat("en-US", { style: "currency", currency: currency, minimumFractionDigits: 2, maximumFractionDigits: 2, }).format(amount); } ```

deepseek-reasoner · deepseek · weighted 8.0 · typescript_validity=6, no_any_types=10 · $0.000876 · 5385ms

```typescript function formatPrice(amount: number, currency: string): string { return new Intl.NumberFormat('en-US', { style: 'currency', currency: currency, minimumFractionDigits: 2, maximumFractionDigits: 2 }).format(amount); } ```

mistral-large-latest · mistral · weighted 8.0 · typescript_validity=6, no_any_types=10 · $0.0 · 1423ms

```typescript function formatPrice(amount: number, currency: string): string { const formattedAmount = new Intl.NumberFormat('en-US', { style: 'currency', currency, minimumFractionDigits: 2, maximumFractionDigits: 2, }).format(amount); return formattedAmount; } ```

gpt-4o-mini · openai · weighted 8.0 · typescript_validity=6, no_any_types=10 · $3.4e-05 · 1237ms

```typescript function formatPrice(amount: number, currency: string): string { return new Intl.NumberFormat('en-US', { style: 'currency', currency: currency, }).format(amount); } ```

gpt-4o · openai · weighted 8.0 · typescript_validity=6, no_any_types=10 · $0.000512 · 1047ms

```typescript function formatPrice(amount: number, currency: string): string { return new Intl.NumberFormat('en-US', { style: 'currency', currency }).format(amount); } ```

gpt-4o-mini · openai · weighted 8.0 · typescript_validity=6, no_any_types=10 · $3.4e-05 · 952ms

```typescript function formatPrice(amount: number, currency: string): string { return new Intl.NumberFormat('en-US', { style: 'currency', currency: currency, }).format(amount); } ```

grok-3 · xai · weighted 8.0 · typescript_validity=6, no_any_types=10 · $0.000864 · 710ms

```typescript function formatPrice(amount: number, currency: string): string { return new Intl.NumberFormat('en-US', { style: 'currency', currency: currency.toUpperCase() }).format(amount); } ```

claude-opus-4-6 · anthropic · weighted 8.0 · typescript_validity=6, no_any_types=10 · $0.017535 · 3602ms

```typescript function formatPrice(amount: number, currency: string): string { const currencySymbols: Record<string, string> = { USD: '$', EUR: '€', GBP: '£', JPY: '¥', CAD: 'C$', AUD: 'A$', CHF: 'CHF', CNY: '¥', INR: '₹', BRL: 'R$', }; const symbol: string = currencySymbols[currency.toUpperCase()] ?? currency; const formattedAmount: string = amount.toFixed(2); return `${symbol}${formattedAmount}`; } ```

deepseek-reasoner · deepseek · weighted 8.0 · typescript_validity=6, no_any_types=10 · $0.000994 · 6057ms

```typescript function formatPrice(amount: number, currency: string): string { return new Intl.NumberFormat('en-US', { style: 'currency', currency: currency, }).format(amount); } ```

claude-haiku-4-5-20251001 · anthropic · weighted 8.0 · typescript_validity=6, no_any_types=10 · $0.001859 · 3627ms

```typescript function formatPrice(amount: number, currency: string): string { return new Intl.NumberFormat('en-US', { style: 'currency', currency: currency, }).format(amount); } ```

sonar-pro · perplexity · weighted 8.0 · typescript_validity=6, no_any_types=10 · $0.000876 · 6014ms

```typescript function formatPrice(amount: number, currency: string): string { const formatter = new Intl.NumberFormat('en-US', { style: 'currency', currency: currency, }); return formatter.format(amount); } ```

gpt-4o-mini · openai · weighted 8.0 · typescript_validity=6, no_any_types=10 · $3.4e-05 · 1659ms

```typescript function formatPrice(amount: number, currency: string): string { return new Intl.NumberFormat('en-US', { style: 'currency', currency: currency, }).format(amount); } ```

gpt-4.1-mini · openai · weighted 8.0 · typescript_validity=6, no_any_types=10 · $0.0 · 1060ms

```typescript function formatPrice(amount: number, currency: string): string { return new Intl.NumberFormat(undefined, { style: 'currency', currency, minimumFractionDigits: 2, maximumFractionDigits: 2, }).format(amount); } ```

deepseek-chat · deepseek · weighted 8.0 · typescript_validity=6, no_any_types=10 · $3.5e-05 · 1869ms

```typescript function formatPrice(amount: number, currency: string): string { const currencySymbols: Record<string, string> = { USD: '$', EUR: '€', GBP: '£', JPY: '¥', INR: '₹', }; const symbol: string = currencySymbols[currency] || currency; const formattedAmount: string = amount.toFixed(2); return `${symbol}${formattedAmount}`; } ```

meta-llama/Llama-3.3-70B-Instruct-Turbo · together · weighted 8.0 · typescript_validity=6, no_any_types=10 · $0.0 · 1485ms

```typescript function formatPrice(amount: number, currency: string): string { const formattedAmount = amount.toLocaleString(undefined, { minimumFractionDigits: 2, maximumFractionDigits: 2 }); return `${currency}${formattedAmount}`; } ```

claude-sonnet-4-6 · anthropic · weighted 8.0 · typescript_validity=6, no_any_types=10 · $0.0 · 2299ms

```typescript function formatPrice(amount: number, currency: string): string { return new Intl.NumberFormat("en-US", { style: "currency", currency: currency, minimumFractionDigits: 2, maximumFractionDigits: 2, }).format(amount); } ```

claude-opus-4-6 · anthropic · weighted 8.0 · typescript_validity=6, no_any_types=10 · $0.04101 · 10584ms

```typescript function formatPrice(amount: number, currency: string): string { const formatter = new Intl.NumberFormat('en-US', { style: 'currency', currency, minimumFractionDigits: 2, maximumFractionDigits: 2, }); return formatter.format(amount); } ``` **How it works:** - Uses the built-in `Intl.NumberFormat` API with the `'currency'` style. - The `currency` parameter accepts an [ISO 4217 currency code](https://en.wikipedia.org/wiki/ISO_4217) (e.g., `'USD'`, `'EUR'`, `'GBP'`). - `minimumFractionDigits` and `maximumFractionDigits` are both set to `2` to ensure consistent formatting like `$12.50`. - No `any` types — both parameters and the return value are explicitly typed. **Examples:** ```typescript formatPrice(12.5, 'USD'); // "$12.50" formatPrice(1234.5, 'EUR'); // "€1,234.50" formatPrice(9.99, 'GBP'); // "£9.99" formatPrice(1000, 'JPY'); // "¥1,000.00" ```

deepseek-ai/DeepSeek-V3.1 · together · weighted 8.0 · typescript_validity=6, no_any_types=10 · $0.0 · 3005ms

Here's the TypeScript function `formatPrice`: ```typescript function formatPrice(amount: number, currency: string): string { return `${currency}${amount.toFixed(2)}`; } ``` This function: 1. Takes a number `amount` and string `currency` as parameters 2. Formats the amount to 2 decimal places using `toFixed(2)` 3. Returns a string with the currency symbol concatenated with the formatted amount 4. Uses proper TypeScript types with no `any` type

claude-haiku-4-5-20251001 · anthropic · weighted 8.0 · typescript_validity=6, no_any_types=10 · $0.001339 · 2337ms

```typescript function formatPrice(amount: number, currency: string): string { return new Intl.NumberFormat('en-US', { style: 'currency', currency: currency, }).format(amount); } ```

claude-sonnet-4-6 · anthropic · weighted 8.0 · typescript_validity=6, no_any_types=10 · $0.0 · 1777ms

```typescript function formatPrice(amount: number, currency: string): string { return new Intl.NumberFormat('en-US', { style: 'currency', currency: currency, }).format(amount); } ```

claude-haiku-4-5-20251001 · anthropic · weighted 8.0 · typescript_validity=6, no_any_types=10 · $0.001191 · 2303ms

```typescript function formatPrice(amount: number, currency: string): string { return new Intl.NumberFormat('en-US', { style: 'currency', currency: currency, }).format(amount); } ```

command-r-08-2024 · cohere · weighted 8.0 · typescript_validity=6, no_any_types=10 · $0.0 · 703ms

```typescript function formatPrice(amount: number, currency: string): string { return `${currency}${amount.toFixed(2)}`; } ```

gpt-4o · openai · weighted 8.0 · typescript_validity=6, no_any_types=10 · $0.000512 · 1198ms

```typescript function formatPrice(amount: number, currency: string): string { return new Intl.NumberFormat('en-US', { style: 'currency', currency }).format(amount); } ```

claude-opus-4-6 · anthropic · weighted 8.0 · typescript_validity=6, no_any_types=10 · $0.010125 · 2972ms

```typescript function formatPrice(amount: number, currency: string): string { const currencySymbols: Record<string, string> = { USD: '$', EUR: '€', GBP: '£', JPY: '¥', }; const symbol: string = currencySymbols[currency] ?? currency; const formattedAmount: string = amount.toFixed(2); return `${symbol}${formattedAmount}`; } ```

gpt-4.1-mini · openai · weighted 8.0 · typescript_validity=6, no_any_types=10 · $0.0 · 1992ms

```typescript function formatPrice(amount: number, currency: string): string { return new Intl.NumberFormat(undefined, { style: 'currency', currency, minimumFractionDigits: 2, maximumFractionDigits: 2, }).format(amount); } ```

deepseek-chat · deepseek · weighted 8.0 · typescript_validity=6, no_any_types=10 · $3.5e-05 · 1690ms

```typescript function formatPrice(amount: number, currency: string): string { const currencySymbols: Record<string, string> = { USD: '$', EUR: '€', GBP: '£', JPY: '¥', INR: '₹', }; const symbol = currencySymbols[currency] || currency; const formattedAmount = amount.toFixed(2); return `${symbol}${formattedAmount}`; } ```

claude-haiku-4-5-20251001 · anthropic · weighted 8.0 · typescript_validity=6, no_any_types=10 · $0.000416 · 1006ms

```typescript function formatPrice(amount: number, currency: string): string { const formatter = new Intl.NumberFormat('en-US', { style: 'currency', currency: currency, minimumFractionDigits: 2, maximumFractionDigits: 2, }); return formatter.format(amount); } ```

deepseek-chat · deepseek · weighted 8.0 · typescript_validity=6, no_any_types=10 · $3.5e-05 · 2037ms

```typescript function formatPrice(amount: number, currency: string): string { const currencySymbols: Record<string, string> = { USD: '$', EUR: '€', GBP: '£', JPY: '¥', INR: '₹', }; const symbol = currencySymbols[currency] || currency; const formattedAmount = amount.toFixed(2); return `${symbol}${formattedAmount}`; } ```

Qwen/Qwen2.5-7B-Instruct-Turbo · together · weighted 8.0 · typescript_validity=6, no_any_types=10 · $0.0 · 326ms

```typescript function formatPrice(amount: number, currency: string): string { return `${currency}${amount.toFixed(2)}`; } ```

claude-opus-4-6 · anthropic · weighted 8.0 · typescript_validity=6, no_any_types=10 · $0.03711 · 9556ms

```typescript function formatPrice(amount: number, currency: string): string { return new Intl.NumberFormat('en-US', { style: 'currency', currency, minimumFractionDigits: 2, maximumFractionDigits: 2, }).format(amount); } ``` **How it works:** - Uses the built-in `Intl.NumberFormat` API with the `'currency'` style. - The `currency` parameter accepts an ISO 4217 currency code (e.g., `'USD'`, `'EUR'`, `'GBP'`). - `minimumFractionDigits` / `maximumFractionDigits` ensure exactly 2 decimal places. **Examples:** ```typescript formatPrice(12.5, 'USD'); // "$12.50" formatPrice(1234.5, 'EUR'); // "€1,234.50" formatPrice(99, 'GBP'); // "£99.00" formatPrice(0.99, 'JPY'); // "¥0.99" ```

Resolved Here

Requests semantically routed into this niche.

RequestedMethodConfidenceWhen
code_writingsemantic0.6962026-05-20 17:26
code_writingsemantic0.6592026-05-20 17:21