TAAS
Overview Niche Catalog
Generated Objects Routing & Audit ← Niche Catalog
code_generation Modality: llm_chat · full deep dive — every ranked model, test result, and artifact.
Ranked Models Ranked by confidence-adjusted score (single/zero-sample, non-curated scores floored; curated empirical scores trusted as-is).
# Model Provider Adj. Score Raw Evidence 1 claude-sonnet-4-6 anthropic 0.920 0.920 curated 2 claude-opus-4-6 anthropic 0.840 0.840 curated 3 claude-sonnet-4-5-20250929 anthropic 0.530 0.530 curated 4 gemini-2.5-flash google_gemini 0.120 0.800 provisional (n≤1) 5 gemini-2.5-pro google_gemini 0.120 0.800 provisional (n≤1) 6 claude-haiku-4-5-20251001 anthropic 0.120 0.800 provisional (n≤1) 7 gpt-4o-mini openai 0.120 0.800 provisional (n≤1) 8 gpt-4o openai 0.120 0.800 provisional (n≤1) 9 sonar-pro perplexity 0.120 0.800 provisional (n≤1) 10 Qwen/Qwen2.5-7B-Instruct-Turbo together 0.120 0.800 provisional (n≤1) 11 command-r-08-2024 cohere 0.120 0.800 provisional (n≤1) 12 gpt-4.1-mini openai 0.120 0.800 provisional (n≤1) 13 sonar perplexity 0.120 0.800 provisional (n≤1) 14 deepseek-ai/DeepSeek-V3.1 together 0.120 0.800 provisional (n≤1) 15 deepseek-reasoner deepseek 0.120 0.800 provisional (n≤1) 16 grok-3-mini xai 0.120 0.800 provisional (n≤1) 17 meta-llama/Llama-3.3-70B-Instruct-Turbo together 0.120 0.800 provisional (n≤1) 18 grok-4 xai 0.120 0.800 provisional (n≤1) 19 claude-opus-4-7 anthropic 0.120 0.800 provisional (n≤1) 20 gpt-4.1 openai 0.120 0.800 provisional (n≤1) 21 deepseek-ai/DeepSeek-R1 together 0.075 0.500 provisional (n≤1) 22 grok-3 xai 0.075 0.500 provisional (n≤1) 23 gpt-5.1 openai 0.075 0.500 provisional (n≤1) 24 o4-mini openai 0.075 0.500 provisional (n≤1) 25 gpt-5-nano openai 0.075 0.500 provisional (n≤1) 26 deepseek-chat deepseek 0.000 0.000 provisional (n≤1) 27 mistral-large-latest mistral 0.000 0.000 provisional (n≤1) 28 mistral-small-latest mistral 0.000 0.000 provisional (n≤1) 29 magistral-small-latest mistral 0.000 0.000 provisional (n≤1) 30 gpt-5 openai 0.000 0.000 provisional (n≤1) 31 gpt-5-mini openai 0.000 0.000 provisional (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.
Requested Method Confidence When code_writingsemantic 0.696 2026-05-20 17:26 code_writingsemantic 0.659 2026-05-20 17:21