Skip to content

Commit cf36c36

Browse files
committed
examples with pricing
1 parent a872789 commit cf36c36

File tree

3 files changed

+2507
-0
lines changed

3 files changed

+2507
-0
lines changed
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
{
2+
"tests": [
3+
{
4+
"testName": "snippets",
5+
"prompt": "# Snippet Component Task\n\nCreate a simple Svelte 5 component that demonstrates the basic use of snippets.\n\n## Requirements:\n\n1. Create a component with a hardcoded array of 3 book titles (strings) - \"The Lord of the Rings\", \"To Kill a Mockingbird\", and \"1984\"\n2. Create a snippet called `title` that takes a book title string as a parameter\n3. The snippet should display the book title in a `<span>` element with `data-testid=\"book-title\"`\n4. Use the `{@render ...}` syntax to render the snippet for each book title in a list\n5. Each rendered title should be wrapped in a `<li>` element with `data-testid=\"book-item\"`\n\n## Example HTML structure:\n\n```html\n<ul>\n <li data-testid=\"book-item\">The Lord of the Rings</li>\n <li data-testid=\"book-item\">To Kill a Mockingbird</li>\n <li data-testid=\"book-item\">1984</li>\n</ul>\n```\n\nPlease implement this component using Svelte 5 runes.\n",
6+
"steps": [],
7+
"resultWriteContent": null,
8+
"verification": {
9+
"testName": "snippets",
10+
"passed": false,
11+
"numTests": 0,
12+
"numPassed": 0,
13+
"numFailed": 0,
14+
"duration": 0,
15+
"error": "anthropic/claude-haiku-4-5 is not a valid model ID"
16+
}
17+
}
18+
],
19+
"metadata": {
20+
"mcpEnabled": false,
21+
"mcpServerUrl": null,
22+
"mcpTransportType": null,
23+
"timestamp": "2025-12-09T20:45:46.019Z",
24+
"model": "openrouter/anthropic/claude-haiku-4-5",
25+
"pricingKey": "claude-haiku-4-5",
26+
"pricing": {
27+
"inputCostPerMTok": 1,
28+
"outputCostPerMTok": 5,
29+
"cacheReadCostPerMTok": 0.09999999999999999
30+
},
31+
"totalCost": {
32+
"inputCost": 0,
33+
"outputCost": 0,
34+
"cacheReadCost": 0,
35+
"totalCost": 0,
36+
"inputTokens": 0,
37+
"outputTokens": 0,
38+
"cachedInputTokens": 0
39+
}
40+
}
41+
}

0 commit comments

Comments
 (0)