mirror of
https://github.com/lukaszraczylo/traefik-llmgateway.git
synced 2026-11-26 10:06:31 +00:00
feat(router): smart routers and per-member rate limits (#9)
Add smart routers: virtual models that score each request and route it to admin-defined model tiers. A retryable failure moves the request to a higher tier. The classifier v2 extracts prose, finds the original ask in long tool loops, adds an uncertainty margin and reads tool-output failures. Sessions, outcome signals, bounded calibration, adaptive selection within a tier, gated saturation downgrade, a first-byte timeout and an opt-in timeout fallback are included. Every new feature is off by default. Add per-member group limits, a tokensPerMinute window that counts uncached input and output, rate-limit headers in three dialects, soft pacing before the hard limit, and a limitExemptKinds list so embedding and reranking traffic never counts toward or hits a limit. Fix yaegi named-result state that made smartContentSize grow between calls.
This commit is contained in:
+278
@@ -0,0 +1,278 @@
|
||||
[
|
||||
{
|
||||
"id": "chit-01",
|
||||
"group": "chitchat",
|
||||
"lang": "en",
|
||||
"intent": "chitchat",
|
||||
"wire": "openai",
|
||||
"request": {
|
||||
"model": "smart/auto",
|
||||
"messages": [
|
||||
{
|
||||
"role": "user",
|
||||
"content": "Hello!"
|
||||
}
|
||||
]
|
||||
},
|
||||
"session": null,
|
||||
"minTier": 0,
|
||||
"maxTier": 0,
|
||||
"notes": "greeting; cheapest tier is enough"
|
||||
},
|
||||
{
|
||||
"id": "chit-02",
|
||||
"group": "chitchat",
|
||||
"lang": "en",
|
||||
"intent": "chitchat",
|
||||
"wire": "anthropic",
|
||||
"request": {
|
||||
"model": "smart/auto",
|
||||
"max_tokens": 1024,
|
||||
"messages": [
|
||||
{
|
||||
"role": "user",
|
||||
"content": [
|
||||
{
|
||||
"type": "text",
|
||||
"text": "thanks, that helped"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"session": null,
|
||||
"minTier": 0,
|
||||
"maxTier": 0,
|
||||
"notes": "thanks; cheapest tier is enough"
|
||||
},
|
||||
{
|
||||
"id": "chit-03",
|
||||
"group": "chitchat",
|
||||
"lang": "en",
|
||||
"intent": "chitchat",
|
||||
"wire": "openai",
|
||||
"request": {
|
||||
"model": "smart/auto",
|
||||
"messages": [
|
||||
{
|
||||
"role": "user",
|
||||
"content": "What is the capital of France?"
|
||||
}
|
||||
]
|
||||
},
|
||||
"session": null,
|
||||
"minTier": 0,
|
||||
"maxTier": 0,
|
||||
"notes": "trivia lookup; cheapest tier is enough"
|
||||
},
|
||||
{
|
||||
"id": "chit-04",
|
||||
"group": "chitchat",
|
||||
"lang": "en",
|
||||
"intent": "chitchat",
|
||||
"wire": "anthropic",
|
||||
"request": {
|
||||
"model": "smart/auto",
|
||||
"max_tokens": 1024,
|
||||
"messages": [
|
||||
{
|
||||
"role": "user",
|
||||
"content": [
|
||||
{
|
||||
"type": "text",
|
||||
"text": "Tell me a joke about cats."
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"session": null,
|
||||
"minTier": 0,
|
||||
"maxTier": 0,
|
||||
"notes": "joke; cheapest tier is enough"
|
||||
},
|
||||
{
|
||||
"id": "chit-05",
|
||||
"group": "chitchat",
|
||||
"lang": "en",
|
||||
"intent": "chitchat",
|
||||
"wire": "openai",
|
||||
"request": {
|
||||
"model": "smart/auto",
|
||||
"messages": [
|
||||
{
|
||||
"role": "user",
|
||||
"content": "how are you today?"
|
||||
}
|
||||
]
|
||||
},
|
||||
"session": null,
|
||||
"minTier": 0,
|
||||
"maxTier": 0,
|
||||
"notes": "smalltalk; cheapest tier is enough"
|
||||
},
|
||||
{
|
||||
"id": "chit-06",
|
||||
"group": "chitchat",
|
||||
"lang": "en",
|
||||
"intent": "chitchat",
|
||||
"wire": "anthropic",
|
||||
"request": {
|
||||
"model": "smart/auto",
|
||||
"max_tokens": 1024,
|
||||
"messages": [
|
||||
{
|
||||
"role": "user",
|
||||
"content": [
|
||||
{
|
||||
"type": "text",
|
||||
"text": "Who is Ada Lovelace?"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"session": null,
|
||||
"minTier": 0,
|
||||
"maxTier": 0,
|
||||
"notes": "short factual; cheapest tier is enough"
|
||||
},
|
||||
{
|
||||
"id": "chit-07",
|
||||
"group": "chitchat",
|
||||
"lang": "en",
|
||||
"intent": "chitchat",
|
||||
"wire": "openai",
|
||||
"request": {
|
||||
"model": "smart/auto",
|
||||
"messages": [
|
||||
{
|
||||
"role": "user",
|
||||
"content": "What time zone is Tokyo in?"
|
||||
}
|
||||
]
|
||||
},
|
||||
"session": null,
|
||||
"minTier": 0,
|
||||
"maxTier": 0,
|
||||
"notes": "short factual; cheapest tier is enough"
|
||||
},
|
||||
{
|
||||
"id": "chit-08",
|
||||
"group": "chitchat",
|
||||
"lang": "en",
|
||||
"intent": "chitchat",
|
||||
"wire": "anthropic",
|
||||
"request": {
|
||||
"model": "smart/auto",
|
||||
"max_tokens": 1024,
|
||||
"messages": [
|
||||
{
|
||||
"role": "user",
|
||||
"content": [
|
||||
{
|
||||
"type": "text",
|
||||
"text": "define serendipity"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"session": null,
|
||||
"minTier": 0,
|
||||
"maxTier": 0,
|
||||
"notes": "dictionary; cheapest tier is enough"
|
||||
},
|
||||
{
|
||||
"id": "chit-09",
|
||||
"group": "chitchat",
|
||||
"lang": "en",
|
||||
"intent": "chitchat",
|
||||
"wire": "openai",
|
||||
"request": {
|
||||
"model": "smart/auto",
|
||||
"messages": [
|
||||
{
|
||||
"role": "user",
|
||||
"content": "Thank you so much, have a great day"
|
||||
}
|
||||
]
|
||||
},
|
||||
"session": null,
|
||||
"minTier": 0,
|
||||
"maxTier": 0,
|
||||
"notes": "closing; cheapest tier is enough"
|
||||
},
|
||||
{
|
||||
"id": "chit-10",
|
||||
"group": "chitchat",
|
||||
"lang": "en",
|
||||
"intent": "chitchat",
|
||||
"wire": "anthropic",
|
||||
"request": {
|
||||
"model": "smart/auto",
|
||||
"max_tokens": 1024,
|
||||
"messages": [
|
||||
{
|
||||
"role": "user",
|
||||
"content": [
|
||||
{
|
||||
"type": "text",
|
||||
"text": "what is 12 times 11?"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"session": null,
|
||||
"minTier": 0,
|
||||
"maxTier": 0,
|
||||
"notes": "trivial arithmetic; cheapest tier is enough"
|
||||
},
|
||||
{
|
||||
"id": "chit-11",
|
||||
"group": "chitchat",
|
||||
"lang": "en",
|
||||
"intent": "chitchat",
|
||||
"wire": "openai",
|
||||
"request": {
|
||||
"model": "smart/auto",
|
||||
"messages": [
|
||||
{
|
||||
"role": "user",
|
||||
"content": "hi, can you help me pick a name for my dog? he is a golden retriever puppy"
|
||||
}
|
||||
]
|
||||
},
|
||||
"session": null,
|
||||
"minTier": 0,
|
||||
"maxTier": 1,
|
||||
"notes": "casual naming request with no technical content"
|
||||
},
|
||||
{
|
||||
"id": "chit-12",
|
||||
"group": "chitchat",
|
||||
"lang": "en",
|
||||
"intent": "chitchat",
|
||||
"wire": "anthropic",
|
||||
"request": {
|
||||
"model": "smart/auto",
|
||||
"max_tokens": 1024,
|
||||
"messages": [
|
||||
{
|
||||
"role": "user",
|
||||
"content": [
|
||||
{
|
||||
"type": "text",
|
||||
"text": "What is the difference between affect and effect?"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"session": null,
|
||||
"minTier": 0,
|
||||
"maxTier": 1,
|
||||
"notes": "short grammar question"
|
||||
}
|
||||
]
|
||||
Vendored
+508
@@ -0,0 +1,508 @@
|
||||
[
|
||||
{
|
||||
"id": "dbg-01",
|
||||
"group": "debug",
|
||||
"lang": "en",
|
||||
"intent": "debug",
|
||||
"wire": "openai",
|
||||
"request": {
|
||||
"model": "smart/auto",
|
||||
"messages": [
|
||||
{
|
||||
"role": "user",
|
||||
"content": "My service crashes on startup. Here is the traceback:\n\n```\nTraceback (most recent call last):\n File \"app/main.py\", line 42, in handle\n result = process(payload)\n File \"app/core.py\", line 17, in process\n return payload[\"items\"][0][\"id\"]\nKeyError: 'items'\n```\nwhy is this happening?"
|
||||
}
|
||||
]
|
||||
},
|
||||
"session": null,
|
||||
"minTier": 1,
|
||||
"maxTier": 2,
|
||||
"notes": "fenced python traceback"
|
||||
},
|
||||
{
|
||||
"id": "dbg-02",
|
||||
"group": "debug",
|
||||
"lang": "en",
|
||||
"intent": "debug",
|
||||
"wire": "anthropic",
|
||||
"request": {
|
||||
"model": "smart/auto",
|
||||
"max_tokens": 1024,
|
||||
"messages": [
|
||||
{
|
||||
"role": "user",
|
||||
"content": [
|
||||
{
|
||||
"type": "text",
|
||||
"text": "Why does this panic?\n\npanic: runtime error: invalid memory address or nil pointer dereference\n[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x4a1b2c]\n\ngoroutine 1 [running]:\nmain.(*Server).handle(0x0, 0xc000123456)\n\t/app/server.go:88 +0x2c\nmain.main()\n\t/app/main.go:21 +0x65\nexit status 2"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"session": null,
|
||||
"minTier": 1,
|
||||
"maxTier": 2,
|
||||
"notes": "unfenced go panic"
|
||||
},
|
||||
{
|
||||
"id": "dbg-03",
|
||||
"group": "debug",
|
||||
"lang": "en",
|
||||
"intent": "debug",
|
||||
"wire": "openai",
|
||||
"request": {
|
||||
"model": "smart/auto",
|
||||
"messages": [
|
||||
{
|
||||
"role": "user",
|
||||
"content": "I get this exception when I call count with an empty value, what is wrong?\n\nException in thread \"main\" java.lang.NullPointerException: Cannot invoke \"String.length()\" because \"s\" is null\n\tat com.acme.Util.count(Util.java:14)\n\tat com.acme.App.run(App.java:31)\n\tat com.acme.App.main(App.java:9)"
|
||||
}
|
||||
]
|
||||
},
|
||||
"session": null,
|
||||
"minTier": 1,
|
||||
"maxTier": 2,
|
||||
"notes": "java stack trace"
|
||||
},
|
||||
{
|
||||
"id": "dbg-04",
|
||||
"group": "debug",
|
||||
"lang": "en",
|
||||
"intent": "debug",
|
||||
"wire": "anthropic",
|
||||
"request": {
|
||||
"model": "smart/auto",
|
||||
"max_tokens": 1024,
|
||||
"messages": [
|
||||
{
|
||||
"role": "user",
|
||||
"content": [
|
||||
{
|
||||
"type": "text",
|
||||
"text": "npm install is failing, can you help me fix it?\n\nnpm ERR! code ERESOLVE\nnpm ERR! ERESOLVE could not resolve\nnpm ERR! While resolving: [email protected]\nnpm ERR! Found: [email protected]\nnpm ERR! Could not resolve dependency: peer react@\"^17.0.0\" from [email protected]"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"session": null,
|
||||
"minTier": 1,
|
||||
"maxTier": 2,
|
||||
"notes": "dependency resolution log"
|
||||
},
|
||||
{
|
||||
"id": "dbg-05",
|
||||
"group": "debug",
|
||||
"lang": "en",
|
||||
"intent": "debug",
|
||||
"wire": "openai",
|
||||
"request": {
|
||||
"model": "smart/auto",
|
||||
"messages": [
|
||||
{
|
||||
"role": "user",
|
||||
"content": "The borrow checker is rejecting this, how do I fix it?\n\n```\nerror[E0382]: borrow of moved value: `v`\n --> src/main.rs:6:20\n |\n4 | let v = vec![1, 2, 3];\n5 | let w = v;\n6 | println!(\"{:?}\", v);\n | ^ value borrowed here after move\n```"
|
||||
}
|
||||
]
|
||||
},
|
||||
"session": null,
|
||||
"minTier": 1,
|
||||
"maxTier": 2,
|
||||
"notes": "rust compiler error"
|
||||
},
|
||||
{
|
||||
"id": "dbg-06",
|
||||
"group": "debug",
|
||||
"lang": "en",
|
||||
"intent": "debug",
|
||||
"wire": "anthropic",
|
||||
"request": {
|
||||
"model": "smart/auto",
|
||||
"max_tokens": 1024,
|
||||
"messages": [
|
||||
{
|
||||
"role": "user",
|
||||
"content": [
|
||||
{
|
||||
"type": "text",
|
||||
"text": "My pod keeps restarting, here are the events:\n\nEvents:\n Type Reason Age From Message\n Warning BackOff 2m (x41 over 10m) kubelet Back-off restarting failed container\n Normal Pulled 2m kubelet Container image already present\nLast State: Terminated Reason: OOMKilled Exit Code: 137\n\nwhat should I change?"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"session": null,
|
||||
"minTier": 1,
|
||||
"maxTier": 2,
|
||||
"notes": "oom kill log"
|
||||
},
|
||||
{
|
||||
"id": "dbg-07",
|
||||
"group": "debug",
|
||||
"lang": "en",
|
||||
"intent": "debug",
|
||||
"wire": "openai",
|
||||
"request": {
|
||||
"model": "smart/auto",
|
||||
"messages": [
|
||||
{
|
||||
"role": "user",
|
||||
"content": "node crashes with this error, not working at all:\n\nSyntaxError: Unexpected token '}'\n at wrapSafe (node:internal/modules/cjs/loader:1281:20)\n at Module._compile (node:internal/modules/cjs/loader:1321:27)\n at node:internal/main/run_main_module:28:49"
|
||||
}
|
||||
]
|
||||
},
|
||||
"session": null,
|
||||
"minTier": 1,
|
||||
"maxTier": 2,
|
||||
"notes": "node syntax error log"
|
||||
},
|
||||
{
|
||||
"id": "dbg-08",
|
||||
"group": "debug",
|
||||
"lang": "en",
|
||||
"intent": "debug",
|
||||
"wire": "anthropic",
|
||||
"request": {
|
||||
"model": "smart/auto",
|
||||
"max_tokens": 1024,
|
||||
"messages": [
|
||||
{
|
||||
"role": "user",
|
||||
"content": [
|
||||
{
|
||||
"type": "text",
|
||||
"text": "Our API cannot connect to the database since the maintenance window. Logs:\n\n2025-11-20T10:14:03Z error: dial tcp 10.0.3.7:5432: connect: connection refused\n2025-11-20T10:14:04Z error: retry 1/5 failed\n2025-11-20T10:14:06Z error: retry 2/5 failed\n\nWhat could cause this?"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"session": null,
|
||||
"minTier": 1,
|
||||
"maxTier": 2,
|
||||
"notes": "connection refused log"
|
||||
},
|
||||
{
|
||||
"id": "dbg-09",
|
||||
"group": "debug",
|
||||
"lang": "en",
|
||||
"intent": "debug",
|
||||
"wire": "openai",
|
||||
"request": {
|
||||
"model": "smart/auto",
|
||||
"messages": [
|
||||
{
|
||||
"role": "user",
|
||||
"content": "This test is flaky and fails about one run in ten:\n\n--- FAIL: TestWorker (0.31s)\n worker_test.go:58: expected 3 results, got 2\nFAIL\nexit status 1\n\nI think there is a race condition in the worker pool. How do I find it?"
|
||||
}
|
||||
]
|
||||
},
|
||||
"session": null,
|
||||
"minTier": 1,
|
||||
"maxTier": 2,
|
||||
"notes": "flaky test failure"
|
||||
},
|
||||
{
|
||||
"id": "dbg-10",
|
||||
"group": "debug",
|
||||
"lang": "en",
|
||||
"intent": "debug",
|
||||
"wire": "anthropic",
|
||||
"request": {
|
||||
"model": "smart/auto",
|
||||
"max_tokens": 1024,
|
||||
"messages": [
|
||||
{
|
||||
"role": "user",
|
||||
"content": [
|
||||
{
|
||||
"type": "text",
|
||||
"text": "Why is my build broken?\n\n```\nerror: cannot find module providing package github.com/acme/lib\nmake: *** [build] Error 1\n```"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"session": null,
|
||||
"minTier": 1,
|
||||
"maxTier": 2,
|
||||
"notes": "build failure"
|
||||
},
|
||||
{
|
||||
"id": "dbg-11",
|
||||
"group": "debug",
|
||||
"lang": "en",
|
||||
"intent": "debug",
|
||||
"wire": "openai",
|
||||
"request": {
|
||||
"model": "smart/auto",
|
||||
"messages": [
|
||||
{
|
||||
"role": "user",
|
||||
"content": "The function below returns the wrong total, it is a bug I cannot find:\n\n```python\ndef parse_price(raw):\n cleaned = raw.replace('$', '').replace(',', '')\n if not cleaned:\n return None\n return round(float(cleaned) * 100)\n\ndef total(items):\n return sum(parse_price(i['price']) for i in items)\n```\nInput: [{'price': '$1,200.50'}, {'price': ''}] gives a TypeError"
|
||||
}
|
||||
]
|
||||
},
|
||||
"session": null,
|
||||
"minTier": 1,
|
||||
"maxTier": 2,
|
||||
"notes": "bug in a snippet with symptom"
|
||||
},
|
||||
{
|
||||
"id": "dbg-12",
|
||||
"group": "debug",
|
||||
"lang": "en",
|
||||
"intent": "debug",
|
||||
"wire": "anthropic",
|
||||
"request": {
|
||||
"model": "smart/auto",
|
||||
"max_tokens": 1024,
|
||||
"messages": [
|
||||
{
|
||||
"role": "user",
|
||||
"content": [
|
||||
{
|
||||
"type": "text",
|
||||
"text": "segfault in production once a day. core dump backtrace:\n\n#0 0x00007f3a in memcpy ()\n#1 0x0000555 in parse_frame (buf=0x0, len=4096) at net.c:211\n#2 0x0000555 in read_loop () at net.c:342\n\nthe exception happens only under load. Where do I start?"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"session": null,
|
||||
"minTier": 1,
|
||||
"maxTier": 2,
|
||||
"notes": "native backtrace under load"
|
||||
},
|
||||
{
|
||||
"id": "dbg-13",
|
||||
"group": "debug",
|
||||
"lang": "en",
|
||||
"intent": "debug",
|
||||
"wire": "openai",
|
||||
"request": {
|
||||
"model": "smart/auto",
|
||||
"messages": [
|
||||
{
|
||||
"role": "user",
|
||||
"content": "It's not working: the deploy script exits with error: permission denied on /var/run/docker.sock"
|
||||
}
|
||||
]
|
||||
},
|
||||
"session": null,
|
||||
"minTier": 1,
|
||||
"maxTier": 2,
|
||||
"notes": "short error report"
|
||||
},
|
||||
{
|
||||
"id": "dbg-14",
|
||||
"group": "debug",
|
||||
"lang": "en",
|
||||
"intent": "debug",
|
||||
"wire": "anthropic",
|
||||
"request": {
|
||||
"model": "smart/auto",
|
||||
"max_tokens": 1024,
|
||||
"messages": [
|
||||
{
|
||||
"role": "user",
|
||||
"content": [
|
||||
{
|
||||
"type": "text",
|
||||
"text": "Here is the output of the failing CI job, please explain why it fails and give me a fix:\n\n```\n=== RUN TestMigrate\n migrate_test.go:44: error: column \"deleted_at\" does not exist\n--- FAIL: TestMigrate (0.02s)\nFAIL\nexit status 1\n```"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"session": null,
|
||||
"minTier": 1,
|
||||
"maxTier": 2,
|
||||
"notes": "ci log"
|
||||
},
|
||||
{
|
||||
"id": "dbg-15",
|
||||
"group": "debug",
|
||||
"lang": "en",
|
||||
"intent": "debug",
|
||||
"wire": "openai",
|
||||
"request": {
|
||||
"model": "smart/auto",
|
||||
"messages": [
|
||||
{
|
||||
"role": "user",
|
||||
"content": "Heisenbug: my goroutines deadlock only when the buffer size is 1. Trace:\n\n```\nfatal error: all goroutines are asleep - deadlock!\n\ngoroutine 1 [chan send]:\nmain.produce()\n\t/app/main.go:30 +0x5c\n```\nCan you reason about the channel ownership and tell me what is wrong?"
|
||||
}
|
||||
]
|
||||
},
|
||||
"session": null,
|
||||
"minTier": 2,
|
||||
"maxTier": 2,
|
||||
"notes": "concurrency bug needing careful reasoning"
|
||||
},
|
||||
{
|
||||
"id": "dbg-16",
|
||||
"group": "debug",
|
||||
"lang": "en",
|
||||
"intent": "debug",
|
||||
"wire": "anthropic",
|
||||
"request": {
|
||||
"model": "smart/auto",
|
||||
"max_tokens": 1024,
|
||||
"messages": [
|
||||
{
|
||||
"role": "user",
|
||||
"content": [
|
||||
{
|
||||
"type": "text",
|
||||
"text": "Python raises KeyError: 'items' in this handler, why?\n\nTraceback (most recent call last):\n File \"app/main.py\", line 42, in handle\n result = process(payload)\n File \"app/core.py\", line 17, in process\n return payload[\"items\"][0][\"id\"]\nKeyError: 'items'"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"session": null,
|
||||
"minTier": 1,
|
||||
"maxTier": 2,
|
||||
"notes": "traceback with direct question"
|
||||
},
|
||||
{
|
||||
"id": "dbg-17",
|
||||
"group": "debug",
|
||||
"lang": "en",
|
||||
"intent": "debug",
|
||||
"wire": "openai",
|
||||
"request": {
|
||||
"model": "smart/auto",
|
||||
"messages": [
|
||||
{
|
||||
"role": "user",
|
||||
"content": "react app crashes: Uncaught Error: Rendered more hooks than during the previous render.\n at renderWithHooks (react-dom.development.js:16305:13)\nwhy does this crash happen after I add the early return?"
|
||||
}
|
||||
]
|
||||
},
|
||||
"session": null,
|
||||
"minTier": 1,
|
||||
"maxTier": 2,
|
||||
"notes": "hooks error"
|
||||
},
|
||||
{
|
||||
"id": "dbg-18",
|
||||
"group": "debug",
|
||||
"lang": "en",
|
||||
"intent": "debug",
|
||||
"wire": "anthropic",
|
||||
"request": {
|
||||
"model": "smart/auto",
|
||||
"max_tokens": 1024,
|
||||
"messages": [
|
||||
{
|
||||
"role": "user",
|
||||
"content": [
|
||||
{
|
||||
"type": "text",
|
||||
"text": "TLS handshake fails against our proxy since the certificate rotation:\n\nerror: x509: certificate signed by unknown authority\ncurl: (60) SSL certificate problem\n\nhow do I debug this?"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"session": null,
|
||||
"minTier": 1,
|
||||
"maxTier": 2,
|
||||
"notes": "tls failure"
|
||||
},
|
||||
{
|
||||
"id": "dbg-19",
|
||||
"group": "debug",
|
||||
"lang": "en",
|
||||
"intent": "debug",
|
||||
"wire": "openai",
|
||||
"request": {
|
||||
"model": "smart/auto",
|
||||
"messages": [
|
||||
{
|
||||
"role": "user",
|
||||
"content": "this broke after the upgrade, stack: Exception in thread \"main\" java.lang.NullPointerException: Cannot invoke \"String.length()\" because \"s\" is null | \tat com.acme.Util.count(Util.java:14) | \tat com.acme.App.run(App.java:31) | \tat com.acme.App.main(App.java:9) fix?"
|
||||
}
|
||||
]
|
||||
},
|
||||
"session": null,
|
||||
"minTier": 1,
|
||||
"maxTier": 2,
|
||||
"notes": "stack trace flattened to one line"
|
||||
},
|
||||
{
|
||||
"id": "dbg-20",
|
||||
"group": "debug",
|
||||
"lang": "en",
|
||||
"intent": "debug",
|
||||
"wire": "anthropic",
|
||||
"request": {
|
||||
"model": "smart/auto",
|
||||
"max_tokens": 1024,
|
||||
"messages": [
|
||||
{
|
||||
"role": "user",
|
||||
"content": [
|
||||
{
|
||||
"type": "text",
|
||||
"text": "The migration crashed halfway and left the table in a broken state:\n\n```\nERROR: duplicate key value violates unique constraint \"users_email_key\"\nDETAIL: Key (email)=([email protected]) already exists.\n```\nhow do I recover safely?"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"session": null,
|
||||
"minTier": 1,
|
||||
"maxTier": 2,
|
||||
"notes": "db constraint error"
|
||||
},
|
||||
{
|
||||
"id": "dbg-21",
|
||||
"group": "debug",
|
||||
"lang": "en",
|
||||
"intent": "debug",
|
||||
"wire": "openai",
|
||||
"request": {
|
||||
"model": "smart/auto",
|
||||
"messages": [
|
||||
{
|
||||
"role": "user",
|
||||
"content": "Memory grows without bound in our Node service. heap snapshot diff shows Closure retained by EventEmitter listeners. Why would listeners accumulate and how do I prove it is a leak?"
|
||||
}
|
||||
]
|
||||
},
|
||||
"session": null,
|
||||
"minTier": 1,
|
||||
"maxTier": 2,
|
||||
"notes": "leak investigation without paste"
|
||||
},
|
||||
{
|
||||
"id": "dbg-22",
|
||||
"group": "debug",
|
||||
"lang": "en",
|
||||
"intent": "debug",
|
||||
"wire": "anthropic",
|
||||
"request": {
|
||||
"model": "smart/auto",
|
||||
"max_tokens": 1024,
|
||||
"messages": [
|
||||
{
|
||||
"role": "user",
|
||||
"content": [
|
||||
{
|
||||
"type": "text",
|
||||
"text": "It fails to compile:\n\n```\nmain.go:12:2: undefined: strconv\n```"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"session": null,
|
||||
"minTier": 0,
|
||||
"maxTier": 1,
|
||||
"notes": "trivial missing import"
|
||||
}
|
||||
]
|
||||
Vendored
+370
@@ -0,0 +1,370 @@
|
||||
[
|
||||
{
|
||||
"id": "des-01",
|
||||
"group": "design",
|
||||
"lang": "en",
|
||||
"intent": "design",
|
||||
"wire": "openai",
|
||||
"request": {
|
||||
"model": "smart/auto",
|
||||
"messages": [
|
||||
{
|
||||
"role": "user",
|
||||
"content": "We run a monolith with 40 engineers. Should we migrate to microservices? Compare the trade-offs for deploy velocity, operational cost and team boundaries."
|
||||
}
|
||||
]
|
||||
},
|
||||
"session": null,
|
||||
"minTier": 2,
|
||||
"maxTier": 2,
|
||||
"notes": "multi-axis architecture decision"
|
||||
},
|
||||
{
|
||||
"id": "des-02",
|
||||
"group": "design",
|
||||
"lang": "en",
|
||||
"intent": "design",
|
||||
"wire": "anthropic",
|
||||
"request": {
|
||||
"model": "smart/auto",
|
||||
"max_tokens": 1024,
|
||||
"messages": [
|
||||
{
|
||||
"role": "user",
|
||||
"content": [
|
||||
{
|
||||
"type": "text",
|
||||
"text": "What is a sensible schema for storing multi-tenant audit logs in Postgres that must be queryable per tenant for 7 years?"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"session": null,
|
||||
"minTier": 1,
|
||||
"maxTier": 2,
|
||||
"notes": "schema design"
|
||||
},
|
||||
{
|
||||
"id": "des-03",
|
||||
"group": "design",
|
||||
"lang": "en",
|
||||
"intent": "design",
|
||||
"wire": "openai",
|
||||
"request": {
|
||||
"model": "smart/auto",
|
||||
"messages": [
|
||||
{
|
||||
"role": "user",
|
||||
"content": "Design the architecture for a notification service that fans out to email, SMS and push at 50k messages per second."
|
||||
}
|
||||
]
|
||||
},
|
||||
"session": null,
|
||||
"minTier": 2,
|
||||
"maxTier": 2,
|
||||
"notes": "high-scale design"
|
||||
},
|
||||
{
|
||||
"id": "des-04",
|
||||
"group": "design",
|
||||
"lang": "en",
|
||||
"intent": "design",
|
||||
"wire": "anthropic",
|
||||
"request": {
|
||||
"model": "smart/auto",
|
||||
"max_tokens": 1024,
|
||||
"messages": [
|
||||
{
|
||||
"role": "user",
|
||||
"content": [
|
||||
{
|
||||
"type": "text",
|
||||
"text": "Should we use Kafka or NATS JetStream for our event backbone? We have 20 services, at-least-once delivery needs and a small platform team."
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"session": null,
|
||||
"minTier": 1,
|
||||
"maxTier": 2,
|
||||
"notes": "technology choice with constraints"
|
||||
},
|
||||
{
|
||||
"id": "des-05",
|
||||
"group": "design",
|
||||
"lang": "en",
|
||||
"intent": "design",
|
||||
"wire": "openai",
|
||||
"request": {
|
||||
"model": "smart/auto",
|
||||
"messages": [
|
||||
{
|
||||
"role": "user",
|
||||
"content": "Which approach is better for caching user profiles, write-through or cache-aside? We read 100x more than we write."
|
||||
}
|
||||
]
|
||||
},
|
||||
"session": null,
|
||||
"minTier": 1,
|
||||
"maxTier": 2,
|
||||
"notes": "common design question"
|
||||
},
|
||||
{
|
||||
"id": "des-06",
|
||||
"group": "design",
|
||||
"lang": "en",
|
||||
"intent": "design",
|
||||
"wire": "anthropic",
|
||||
"request": {
|
||||
"model": "smart/auto",
|
||||
"max_tokens": 1024,
|
||||
"messages": [
|
||||
{
|
||||
"role": "user",
|
||||
"content": [
|
||||
{
|
||||
"type": "text",
|
||||
"text": "Describe a migration strategy to move 2 TB of data from MySQL to Postgres with less than 5 minutes of downtime."
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"session": null,
|
||||
"minTier": 2,
|
||||
"maxTier": 2,
|
||||
"notes": "risky migration plan"
|
||||
},
|
||||
{
|
||||
"id": "des-07",
|
||||
"group": "design",
|
||||
"lang": "en",
|
||||
"intent": "design",
|
||||
"wire": "openai",
|
||||
"request": {
|
||||
"model": "smart/auto",
|
||||
"messages": [
|
||||
{
|
||||
"role": "user",
|
||||
"content": "What's your recommended design for an offline-first mobile app that syncs with a REST API and resolves conflicts?"
|
||||
}
|
||||
]
|
||||
},
|
||||
"session": null,
|
||||
"minTier": 1,
|
||||
"maxTier": 2,
|
||||
"notes": "sync design"
|
||||
},
|
||||
{
|
||||
"id": "des-08",
|
||||
"group": "design",
|
||||
"lang": "en",
|
||||
"intent": "design",
|
||||
"wire": "anthropic",
|
||||
"request": {
|
||||
"model": "smart/auto",
|
||||
"max_tokens": 1024,
|
||||
"messages": [
|
||||
{
|
||||
"role": "user",
|
||||
"content": [
|
||||
{
|
||||
"type": "text",
|
||||
"text": "Design a database schema for a library system: books, copies, members and loans."
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"session": null,
|
||||
"minTier": 1,
|
||||
"maxTier": 2,
|
||||
"notes": "textbook schema design"
|
||||
},
|
||||
{
|
||||
"id": "des-09",
|
||||
"group": "design",
|
||||
"lang": "en",
|
||||
"intent": "design",
|
||||
"wire": "openai",
|
||||
"request": {
|
||||
"model": "smart/auto",
|
||||
"messages": [
|
||||
{
|
||||
"role": "user",
|
||||
"content": "Plan the rollout strategy for replacing our auth provider while keeping existing sessions valid. We cannot force users to log in again."
|
||||
}
|
||||
]
|
||||
},
|
||||
"session": null,
|
||||
"minTier": 2,
|
||||
"maxTier": 2,
|
||||
"notes": "rollout with constraints"
|
||||
},
|
||||
{
|
||||
"id": "des-10",
|
||||
"group": "design",
|
||||
"lang": "en",
|
||||
"intent": "design",
|
||||
"wire": "anthropic",
|
||||
"request": {
|
||||
"model": "smart/auto",
|
||||
"max_tokens": 1024,
|
||||
"messages": [
|
||||
{
|
||||
"role": "user",
|
||||
"content": [
|
||||
{
|
||||
"type": "text",
|
||||
"text": "Evaluate the approach of storing feature flags in the database versus a dedicated service. Think through failure modes."
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"session": null,
|
||||
"minTier": 2,
|
||||
"maxTier": 2,
|
||||
"notes": "explicit reasoning request"
|
||||
},
|
||||
{
|
||||
"id": "des-11",
|
||||
"group": "design",
|
||||
"lang": "en",
|
||||
"intent": "design",
|
||||
"wire": "openai",
|
||||
"request": {
|
||||
"model": "smart/auto",
|
||||
"messages": [
|
||||
{
|
||||
"role": "user",
|
||||
"content": "How should we structure a Go monorepo with 12 services and shared libraries? What are the downsides of each layout?"
|
||||
}
|
||||
]
|
||||
},
|
||||
"session": null,
|
||||
"minTier": 1,
|
||||
"maxTier": 2,
|
||||
"notes": "repo structure design"
|
||||
},
|
||||
{
|
||||
"id": "des-12",
|
||||
"group": "design",
|
||||
"lang": "en",
|
||||
"intent": "design",
|
||||
"wire": "anthropic",
|
||||
"request": {
|
||||
"model": "smart/auto",
|
||||
"max_tokens": 1024,
|
||||
"messages": [
|
||||
{
|
||||
"role": "user",
|
||||
"content": [
|
||||
{
|
||||
"type": "text",
|
||||
"text": "We need multi-region active-active for our SaaS. Explain the architecture options for the data layer and which one you would pick."
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"session": null,
|
||||
"minTier": 2,
|
||||
"maxTier": 2,
|
||||
"notes": "multi-region design"
|
||||
},
|
||||
{
|
||||
"id": "des-13",
|
||||
"group": "design",
|
||||
"lang": "en",
|
||||
"intent": "design",
|
||||
"wire": "openai",
|
||||
"request": {
|
||||
"model": "smart/auto",
|
||||
"messages": [
|
||||
{
|
||||
"role": "user",
|
||||
"content": "Is it a good idea to use GraphQL for our public API? Our clients are mostly mobile apps."
|
||||
}
|
||||
]
|
||||
},
|
||||
"session": null,
|
||||
"minTier": 1,
|
||||
"maxTier": 2,
|
||||
"notes": "api style decision"
|
||||
},
|
||||
{
|
||||
"id": "des-14",
|
||||
"group": "design",
|
||||
"lang": "en",
|
||||
"intent": "design",
|
||||
"wire": "anthropic",
|
||||
"request": {
|
||||
"model": "smart/auto",
|
||||
"max_tokens": 1024,
|
||||
"messages": [
|
||||
{
|
||||
"role": "user",
|
||||
"content": [
|
||||
{
|
||||
"type": "text",
|
||||
"text": "What is the approach for idempotent payment webhooks?"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"session": null,
|
||||
"minTier": 1,
|
||||
"maxTier": 2,
|
||||
"notes": "short design question"
|
||||
},
|
||||
{
|
||||
"id": "des-15",
|
||||
"group": "design",
|
||||
"lang": "en",
|
||||
"intent": "design",
|
||||
"wire": "openai",
|
||||
"request": {
|
||||
"model": "smart/auto",
|
||||
"messages": [
|
||||
{
|
||||
"role": "user",
|
||||
"content": "Design a rate limiting strategy for a public API with free and paid tiers, burst allowances and per-endpoint costs."
|
||||
}
|
||||
]
|
||||
},
|
||||
"session": null,
|
||||
"minTier": 1,
|
||||
"maxTier": 2,
|
||||
"notes": "rate limit design"
|
||||
},
|
||||
{
|
||||
"id": "des-16",
|
||||
"group": "design",
|
||||
"lang": "en",
|
||||
"intent": "design",
|
||||
"wire": "anthropic",
|
||||
"request": {
|
||||
"model": "smart/auto",
|
||||
"max_tokens": 1024,
|
||||
"messages": [
|
||||
{
|
||||
"role": "user",
|
||||
"content": [
|
||||
{
|
||||
"type": "text",
|
||||
"text": "Sketch a schema and an indexing strategy for a time-series metrics store with 90 days of retention and per-label queries."
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"session": null,
|
||||
"minTier": 1,
|
||||
"maxTier": 2,
|
||||
"notes": "time series schema"
|
||||
}
|
||||
]
|
||||
Vendored
+528
@@ -0,0 +1,528 @@
|
||||
[
|
||||
{
|
||||
"id": "edit-01",
|
||||
"group": "edit",
|
||||
"lang": "en",
|
||||
"intent": "edit",
|
||||
"wire": "openai",
|
||||
"request": {
|
||||
"model": "smart/auto",
|
||||
"messages": [
|
||||
{
|
||||
"role": "user",
|
||||
"content": "Refactor this Go method to avoid holding the read lock while checking expiry:\n\n```go\nfunc (c *Cache) Get(key string) (string, bool) {\n\tc.mu.RLock()\n\tdefer c.mu.RUnlock()\n\tv, ok := c.items[key]\n\tif !ok || time.Now().After(v.expires) {\n\t\treturn \"\", false\n\t}\n\treturn v.val, true\n}\n```"
|
||||
}
|
||||
]
|
||||
},
|
||||
"session": null,
|
||||
"minTier": 1,
|
||||
"maxTier": 2,
|
||||
"notes": "refactor a fenced snippet"
|
||||
},
|
||||
{
|
||||
"id": "edit-02",
|
||||
"group": "edit",
|
||||
"lang": "en",
|
||||
"intent": "edit",
|
||||
"wire": "anthropic",
|
||||
"request": {
|
||||
"model": "smart/auto",
|
||||
"max_tokens": 1024,
|
||||
"messages": [
|
||||
{
|
||||
"role": "user",
|
||||
"content": [
|
||||
{
|
||||
"type": "text",
|
||||
"text": "Implement a function that returns the nth Fibonacci number iteratively in Python."
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"session": null,
|
||||
"minTier": 0,
|
||||
"maxTier": 1,
|
||||
"notes": "small self-contained function"
|
||||
},
|
||||
{
|
||||
"id": "edit-03",
|
||||
"group": "edit",
|
||||
"lang": "en",
|
||||
"intent": "edit",
|
||||
"wire": "openai",
|
||||
"request": {
|
||||
"model": "smart/auto",
|
||||
"messages": [
|
||||
{
|
||||
"role": "user",
|
||||
"content": "Rename the variable cleaned to digits in this code:\n\n```python\ndef parse_price(raw):\n cleaned = raw.replace('$', '').replace(',', '')\n if not cleaned:\n return None\n return round(float(cleaned) * 100)\n\ndef total(items):\n return sum(parse_price(i['price']) for i in items)\n```"
|
||||
}
|
||||
]
|
||||
},
|
||||
"session": null,
|
||||
"minTier": 0,
|
||||
"maxTier": 1,
|
||||
"notes": "trivial rename in a snippet"
|
||||
},
|
||||
{
|
||||
"id": "edit-04",
|
||||
"group": "edit",
|
||||
"lang": "en",
|
||||
"intent": "edit",
|
||||
"wire": "anthropic",
|
||||
"request": {
|
||||
"model": "smart/auto",
|
||||
"max_tokens": 1024,
|
||||
"messages": [
|
||||
{
|
||||
"role": "user",
|
||||
"content": [
|
||||
{
|
||||
"type": "text",
|
||||
"text": "Write a TypeScript function that debounces another function with a configurable delay, and add unit tests."
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"session": null,
|
||||
"minTier": 1,
|
||||
"maxTier": 2,
|
||||
"notes": "write plus tests"
|
||||
},
|
||||
{
|
||||
"id": "edit-05",
|
||||
"group": "edit",
|
||||
"lang": "en",
|
||||
"intent": "edit",
|
||||
"wire": "openai",
|
||||
"request": {
|
||||
"model": "smart/auto",
|
||||
"messages": [
|
||||
{
|
||||
"role": "user",
|
||||
"content": "Add retries with exponential backoff to this fetch helper:\n\n```ts\nexport async function fetchUser(id: string): Promise<User> {\n const res = await fetch(`/api/users/${id}`);\n if (!res.ok) {\n throw new Error('failed');\n }\n return (await res.json()) as User;\n}\n```"
|
||||
}
|
||||
]
|
||||
},
|
||||
"session": null,
|
||||
"minTier": 1,
|
||||
"maxTier": 2,
|
||||
"notes": "add retry logic to a snippet"
|
||||
},
|
||||
{
|
||||
"id": "edit-06",
|
||||
"group": "edit",
|
||||
"lang": "en",
|
||||
"intent": "edit",
|
||||
"wire": "anthropic",
|
||||
"request": {
|
||||
"model": "smart/auto",
|
||||
"max_tokens": 1024,
|
||||
"messages": [
|
||||
{
|
||||
"role": "user",
|
||||
"content": [
|
||||
{
|
||||
"type": "text",
|
||||
"text": "Create a Dockerfile for a Go service that builds statically and runs as a non-root user."
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"session": null,
|
||||
"minTier": 1,
|
||||
"maxTier": 2,
|
||||
"notes": "write a Dockerfile"
|
||||
},
|
||||
{
|
||||
"id": "edit-07",
|
||||
"group": "edit",
|
||||
"lang": "en",
|
||||
"intent": "edit",
|
||||
"wire": "openai",
|
||||
"request": {
|
||||
"model": "smart/auto",
|
||||
"messages": [
|
||||
{
|
||||
"role": "user",
|
||||
"content": "Change this query to also return the order status and paginate with a cursor:\n\n```sql\nSELECT o.id, o.total, c.email\nFROM orders o\nJOIN customers c ON c.id = o.customer_id\nWHERE o.created_at > now() - interval '7 days'\nORDER BY o.total DESC;\n```"
|
||||
}
|
||||
]
|
||||
},
|
||||
"session": null,
|
||||
"minTier": 1,
|
||||
"maxTier": 2,
|
||||
"notes": "modify a SQL query"
|
||||
},
|
||||
{
|
||||
"id": "edit-08",
|
||||
"group": "edit",
|
||||
"lang": "en",
|
||||
"intent": "edit",
|
||||
"wire": "anthropic",
|
||||
"request": {
|
||||
"model": "smart/auto",
|
||||
"max_tokens": 1024,
|
||||
"messages": [
|
||||
{
|
||||
"role": "user",
|
||||
"content": [
|
||||
{
|
||||
"type": "text",
|
||||
"text": "Implement an LRU cache in Go with generics and a configurable capacity. Include benchmarks."
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"session": null,
|
||||
"minTier": 1,
|
||||
"maxTier": 2,
|
||||
"notes": "implement a data structure"
|
||||
},
|
||||
{
|
||||
"id": "edit-09",
|
||||
"group": "edit",
|
||||
"lang": "en",
|
||||
"intent": "edit",
|
||||
"wire": "openai",
|
||||
"request": {
|
||||
"model": "smart/auto",
|
||||
"messages": [
|
||||
{
|
||||
"role": "user",
|
||||
"content": "Refactor the following into smaller functions and keep behavior identical.\n\ndef parse_price(raw):\n cleaned = raw.replace('$', '').replace(',', '')\n if not cleaned:\n return None\n return round(float(cleaned) * 100)\n\ndef total(items):\n return sum(parse_price(i['price']) for i in items)"
|
||||
}
|
||||
]
|
||||
},
|
||||
"session": null,
|
||||
"minTier": 1,
|
||||
"maxTier": 2,
|
||||
"notes": "refactor an unfenced snippet"
|
||||
},
|
||||
{
|
||||
"id": "edit-10",
|
||||
"group": "edit",
|
||||
"lang": "en",
|
||||
"intent": "edit",
|
||||
"wire": "anthropic",
|
||||
"request": {
|
||||
"model": "smart/auto",
|
||||
"max_tokens": 1024,
|
||||
"messages": [
|
||||
{
|
||||
"role": "user",
|
||||
"content": [
|
||||
{
|
||||
"type": "text",
|
||||
"text": "Write a bash script that rotates logs older than 7 days and compresses them."
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"session": null,
|
||||
"minTier": 0,
|
||||
"maxTier": 1,
|
||||
"notes": "small script"
|
||||
},
|
||||
{
|
||||
"id": "edit-11",
|
||||
"group": "edit",
|
||||
"lang": "en",
|
||||
"intent": "edit",
|
||||
"wire": "openai",
|
||||
"request": {
|
||||
"model": "smart/auto",
|
||||
"messages": [
|
||||
{
|
||||
"role": "user",
|
||||
"content": "Add input validation to this handler and return 400 with a JSON error body.\n\n```go\nfunc handle(w http.ResponseWriter, r *http.Request) {\n\tvar in Input\n\tjson.NewDecoder(r.Body).Decode(&in)\n\tsave(in)\n\tw.WriteHeader(201)\n}\n```"
|
||||
}
|
||||
]
|
||||
},
|
||||
"session": null,
|
||||
"minTier": 1,
|
||||
"maxTier": 2,
|
||||
"notes": "harden a handler"
|
||||
},
|
||||
{
|
||||
"id": "edit-12",
|
||||
"group": "edit",
|
||||
"lang": "en",
|
||||
"intent": "edit",
|
||||
"wire": "anthropic",
|
||||
"request": {
|
||||
"model": "smart/auto",
|
||||
"max_tokens": 1024,
|
||||
"messages": [
|
||||
{
|
||||
"role": "user",
|
||||
"content": [
|
||||
{
|
||||
"type": "text",
|
||||
"text": "write a regex that matches ISO 8601 dates with optional time zone"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"session": null,
|
||||
"minTier": 0,
|
||||
"maxTier": 1,
|
||||
"notes": "small regex"
|
||||
},
|
||||
{
|
||||
"id": "edit-13",
|
||||
"group": "edit",
|
||||
"lang": "en",
|
||||
"intent": "edit",
|
||||
"wire": "openai",
|
||||
"request": {
|
||||
"model": "smart/auto",
|
||||
"messages": [
|
||||
{
|
||||
"role": "user",
|
||||
"content": "Implement a rate limiter middleware using a token bucket for this Express app and wire it into the router."
|
||||
}
|
||||
]
|
||||
},
|
||||
"session": null,
|
||||
"minTier": 1,
|
||||
"maxTier": 2,
|
||||
"notes": "feature implementation"
|
||||
},
|
||||
{
|
||||
"id": "edit-14",
|
||||
"group": "edit",
|
||||
"lang": "en",
|
||||
"intent": "edit",
|
||||
"wire": "anthropic",
|
||||
"request": {
|
||||
"model": "smart/auto",
|
||||
"max_tokens": 1024,
|
||||
"messages": [
|
||||
{
|
||||
"role": "user",
|
||||
"content": [
|
||||
{
|
||||
"type": "text",
|
||||
"text": "Convert this class component to a React function component with hooks.\n\n```jsx\nclass Counter extends React.Component {\n state = { n: 0 };\n inc = () => this.setState({ n: this.state.n + 1 });\n render() { return <button onClick={this.inc}>{this.state.n}</button>; }\n}\n```"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"session": null,
|
||||
"minTier": 0,
|
||||
"maxTier": 1,
|
||||
"notes": "mechanical conversion"
|
||||
},
|
||||
{
|
||||
"id": "edit-15",
|
||||
"group": "edit",
|
||||
"lang": "en",
|
||||
"intent": "edit",
|
||||
"wire": "openai",
|
||||
"request": {
|
||||
"model": "smart/auto",
|
||||
"messages": [
|
||||
{
|
||||
"role": "user",
|
||||
"content": "Create a Terraform module for an S3 bucket with versioning, encryption, and a lifecycle rule."
|
||||
}
|
||||
]
|
||||
},
|
||||
"session": null,
|
||||
"minTier": 1,
|
||||
"maxTier": 2,
|
||||
"notes": "infra module"
|
||||
},
|
||||
{
|
||||
"id": "edit-16",
|
||||
"group": "edit",
|
||||
"lang": "en",
|
||||
"intent": "edit",
|
||||
"wire": "anthropic",
|
||||
"request": {
|
||||
"model": "smart/auto",
|
||||
"max_tokens": 1024,
|
||||
"messages": [
|
||||
{
|
||||
"role": "user",
|
||||
"content": [
|
||||
{
|
||||
"type": "text",
|
||||
"text": "Refactor the payment service to use the strategy pattern for the three payment providers and update the tests accordingly."
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"session": null,
|
||||
"minTier": 1,
|
||||
"maxTier": 2,
|
||||
"notes": "multi-file refactor described in prose"
|
||||
},
|
||||
{
|
||||
"id": "edit-17",
|
||||
"group": "edit",
|
||||
"lang": "en",
|
||||
"intent": "edit",
|
||||
"wire": "openai",
|
||||
"request": {
|
||||
"model": "smart/auto",
|
||||
"messages": [
|
||||
{
|
||||
"role": "user",
|
||||
"content": "Add a docstring to this function:\n\n```python\ndef add(a, b):\n return a + b\n```"
|
||||
}
|
||||
]
|
||||
},
|
||||
"session": null,
|
||||
"minTier": 0,
|
||||
"maxTier": 0,
|
||||
"notes": "trivial docstring"
|
||||
},
|
||||
{
|
||||
"id": "edit-18",
|
||||
"group": "edit",
|
||||
"lang": "en",
|
||||
"intent": "edit",
|
||||
"wire": "anthropic",
|
||||
"request": {
|
||||
"model": "smart/auto",
|
||||
"max_tokens": 1024,
|
||||
"messages": [
|
||||
{
|
||||
"role": "user",
|
||||
"content": [
|
||||
{
|
||||
"type": "text",
|
||||
"text": "Implement pagination for the /orders endpoint, then write migration SQL to add the index it needs."
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"session": null,
|
||||
"minTier": 1,
|
||||
"maxTier": 2,
|
||||
"notes": "endpoint plus migration"
|
||||
},
|
||||
{
|
||||
"id": "edit-19",
|
||||
"group": "edit",
|
||||
"lang": "en",
|
||||
"intent": "edit",
|
||||
"wire": "openai",
|
||||
"request": {
|
||||
"model": "smart/auto",
|
||||
"messages": [
|
||||
{
|
||||
"role": "user",
|
||||
"content": "Change the default timeout from 30 seconds to 10 seconds in this config loader and update its tests."
|
||||
}
|
||||
]
|
||||
},
|
||||
"session": null,
|
||||
"minTier": 0,
|
||||
"maxTier": 1,
|
||||
"notes": "small config change"
|
||||
},
|
||||
{
|
||||
"id": "edit-20",
|
||||
"group": "edit",
|
||||
"lang": "en",
|
||||
"intent": "edit",
|
||||
"wire": "anthropic",
|
||||
"request": {
|
||||
"model": "smart/auto",
|
||||
"max_tokens": 1024,
|
||||
"messages": [
|
||||
{
|
||||
"role": "user",
|
||||
"content": [
|
||||
{
|
||||
"type": "text",
|
||||
"text": "Write a unit test for this function using table-driven style.\n\n```go\nfunc (c *Cache) Get(key string) (string, bool) {\n\tc.mu.RLock()\n\tdefer c.mu.RUnlock()\n\tv, ok := c.items[key]\n\tif !ok || time.Now().After(v.expires) {\n\t\treturn \"\", false\n\t}\n\treturn v.val, true\n}\n```"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"session": null,
|
||||
"minTier": 1,
|
||||
"maxTier": 2,
|
||||
"notes": "write a test for a snippet"
|
||||
},
|
||||
{
|
||||
"id": "edit-21",
|
||||
"group": "edit",
|
||||
"lang": "en",
|
||||
"intent": "edit",
|
||||
"wire": "openai",
|
||||
"request": {
|
||||
"model": "smart/auto",
|
||||
"messages": [
|
||||
{
|
||||
"role": "user",
|
||||
"content": "Implement a concurrent web crawler in Go with a bounded worker pool, politeness delay per host and context cancellation."
|
||||
}
|
||||
]
|
||||
},
|
||||
"session": null,
|
||||
"minTier": 1,
|
||||
"maxTier": 2,
|
||||
"notes": "concurrent implementation"
|
||||
},
|
||||
{
|
||||
"id": "edit-22",
|
||||
"group": "edit",
|
||||
"lang": "en",
|
||||
"intent": "edit",
|
||||
"wire": "anthropic",
|
||||
"request": {
|
||||
"model": "smart/auto",
|
||||
"max_tokens": 1024,
|
||||
"messages": [
|
||||
{
|
||||
"role": "user",
|
||||
"content": [
|
||||
{
|
||||
"type": "text",
|
||||
"text": "Rename the package from utils to helpers and fix all the imports."
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"session": null,
|
||||
"minTier": 0,
|
||||
"maxTier": 1,
|
||||
"notes": "mechanical rename"
|
||||
},
|
||||
{
|
||||
"id": "edit-23",
|
||||
"group": "edit",
|
||||
"lang": "en",
|
||||
"intent": "edit",
|
||||
"wire": "openai",
|
||||
"request": {
|
||||
"model": "smart/auto",
|
||||
"messages": [
|
||||
{
|
||||
"role": "user",
|
||||
"content": "Refactor this 400-line function into a state machine. Here is the first part:\n\n```c\nswitch (state) {\ncase 0: if (c == '{') state = 1; break;\ncase 1: if (c == '}') state = 0; break;\n}\nswitch (state) {\ncase 0: if (c == '{') state = 1; break;\ncase 1: if (c == '}') state = 0; break;\n}\nswitch (state) {\ncase 0: if (c == '{') state = 1; break;\ncase 1: if (c == '}') state = 0; break;\n}\nswitch (state) {\ncase 0: if (c == '{') state = 1; break;\ncase 1: if (c == '}') state = 0; break;\n}\nswitch (state) {\ncase 0: if (c == '{') state = 1; break;\ncase 1: if (c == '}') state = 0; break;\n}\nswitch (state) {\ncase 0: if (c == '{') state = 1; break;\ncase 1: if (c == '}') state = 0; break;\n}\n```"
|
||||
}
|
||||
]
|
||||
},
|
||||
"session": null,
|
||||
"minTier": 1,
|
||||
"maxTier": 2,
|
||||
"notes": "state machine refactor"
|
||||
}
|
||||
]
|
||||
Vendored
+278
@@ -0,0 +1,278 @@
|
||||
[
|
||||
{
|
||||
"id": "math-01",
|
||||
"group": "math",
|
||||
"lang": "en",
|
||||
"intent": "math",
|
||||
"wire": "openai",
|
||||
"request": {
|
||||
"model": "smart/auto",
|
||||
"messages": [
|
||||
{
|
||||
"role": "user",
|
||||
"content": "Prove that the square root of 2 is irrational."
|
||||
}
|
||||
]
|
||||
},
|
||||
"session": null,
|
||||
"minTier": 1,
|
||||
"maxTier": 2,
|
||||
"notes": "classic short proof, mid tier can do it"
|
||||
},
|
||||
{
|
||||
"id": "math-02",
|
||||
"group": "math",
|
||||
"lang": "en",
|
||||
"intent": "math",
|
||||
"wire": "anthropic",
|
||||
"request": {
|
||||
"model": "smart/auto",
|
||||
"max_tokens": 1024,
|
||||
"messages": [
|
||||
{
|
||||
"role": "user",
|
||||
"content": [
|
||||
{
|
||||
"type": "text",
|
||||
"text": "Prove that for all n >= 1, the sum of the first n odd numbers equals n^2, using induction."
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"session": null,
|
||||
"minTier": 1,
|
||||
"maxTier": 2,
|
||||
"notes": "induction proof"
|
||||
},
|
||||
{
|
||||
"id": "math-03",
|
||||
"group": "math",
|
||||
"lang": "en",
|
||||
"intent": "math",
|
||||
"wire": "openai",
|
||||
"request": {
|
||||
"model": "smart/auto",
|
||||
"messages": [
|
||||
{
|
||||
"role": "user",
|
||||
"content": "Derive the closed form of the sum $\\sum_{k=1}^{n} k^2$ and prove it by induction."
|
||||
}
|
||||
]
|
||||
},
|
||||
"session": null,
|
||||
"minTier": 2,
|
||||
"maxTier": 2,
|
||||
"notes": "derivation plus proof with notation"
|
||||
},
|
||||
{
|
||||
"id": "math-04",
|
||||
"group": "math",
|
||||
"lang": "en",
|
||||
"intent": "math",
|
||||
"wire": "anthropic",
|
||||
"request": {
|
||||
"model": "smart/auto",
|
||||
"max_tokens": 1024,
|
||||
"messages": [
|
||||
{
|
||||
"role": "user",
|
||||
"content": [
|
||||
{
|
||||
"type": "text",
|
||||
"text": "State and prove the pigeonhole principle, then use it to show that among any 5 integers two have a difference divisible by 4."
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"session": null,
|
||||
"minTier": 2,
|
||||
"maxTier": 2,
|
||||
"notes": "two-step proof"
|
||||
},
|
||||
{
|
||||
"id": "math-05",
|
||||
"group": "math",
|
||||
"lang": "en",
|
||||
"intent": "math",
|
||||
"wire": "openai",
|
||||
"request": {
|
||||
"model": "smart/auto",
|
||||
"messages": [
|
||||
{
|
||||
"role": "user",
|
||||
"content": "Show that the halting problem is undecidable. Give the full diagonalization argument."
|
||||
}
|
||||
]
|
||||
},
|
||||
"session": null,
|
||||
"minTier": 2,
|
||||
"maxTier": 2,
|
||||
"notes": "formal argument"
|
||||
},
|
||||
{
|
||||
"id": "math-06",
|
||||
"group": "math",
|
||||
"lang": "en",
|
||||
"intent": "math",
|
||||
"wire": "anthropic",
|
||||
"request": {
|
||||
"model": "smart/auto",
|
||||
"max_tokens": 1024,
|
||||
"messages": [
|
||||
{
|
||||
"role": "user",
|
||||
"content": [
|
||||
{
|
||||
"type": "text",
|
||||
"text": "What is the complexity of merge sort and why? Prove the O(n log n) bound with the recurrence."
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"session": null,
|
||||
"minTier": 2,
|
||||
"maxTier": 2,
|
||||
"notes": "recurrence proof"
|
||||
},
|
||||
{
|
||||
"id": "math-07",
|
||||
"group": "math",
|
||||
"lang": "en",
|
||||
"intent": "math",
|
||||
"wire": "openai",
|
||||
"request": {
|
||||
"model": "smart/auto",
|
||||
"messages": [
|
||||
{
|
||||
"role": "user",
|
||||
"content": "Let $f(x) = x^3 - 3x$. Find all critical points and classify them; then show f is not injective on $\\mathbb{R}$."
|
||||
}
|
||||
]
|
||||
},
|
||||
"session": null,
|
||||
"minTier": 1,
|
||||
"maxTier": 2,
|
||||
"notes": "calculus exercise with notation"
|
||||
},
|
||||
{
|
||||
"id": "math-08",
|
||||
"group": "math",
|
||||
"lang": "en",
|
||||
"intent": "math",
|
||||
"wire": "anthropic",
|
||||
"request": {
|
||||
"model": "smart/auto",
|
||||
"max_tokens": 1024,
|
||||
"messages": [
|
||||
{
|
||||
"role": "user",
|
||||
"content": [
|
||||
{
|
||||
"type": "text",
|
||||
"text": "Prove the lemma: if a graph has n vertices and more than n-1 edges, it contains a cycle."
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"session": null,
|
||||
"minTier": 2,
|
||||
"maxTier": 2,
|
||||
"notes": "graph lemma"
|
||||
},
|
||||
{
|
||||
"id": "math-09",
|
||||
"group": "math",
|
||||
"lang": "en",
|
||||
"intent": "math",
|
||||
"wire": "openai",
|
||||
"request": {
|
||||
"model": "smart/auto",
|
||||
"messages": [
|
||||
{
|
||||
"role": "user",
|
||||
"content": "Derive the invariant that makes binary search correct, then prove the loop terminates."
|
||||
}
|
||||
]
|
||||
},
|
||||
"session": null,
|
||||
"minTier": 2,
|
||||
"maxTier": 2,
|
||||
"notes": "loop invariant proof"
|
||||
},
|
||||
{
|
||||
"id": "math-10",
|
||||
"group": "math",
|
||||
"lang": "en",
|
||||
"intent": "math",
|
||||
"wire": "anthropic",
|
||||
"request": {
|
||||
"model": "smart/auto",
|
||||
"max_tokens": 1024,
|
||||
"messages": [
|
||||
{
|
||||
"role": "user",
|
||||
"content": [
|
||||
{
|
||||
"type": "text",
|
||||
"text": "∀ε>0 ∃δ>0 such that |x-a|<δ ⟹ |f(x)-f(a)|<ε. Use this to prove that the sum of two continuous functions is continuous."
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"session": null,
|
||||
"minTier": 2,
|
||||
"maxTier": 2,
|
||||
"notes": "epsilon-delta proof"
|
||||
},
|
||||
{
|
||||
"id": "math-11",
|
||||
"group": "math",
|
||||
"lang": "en",
|
||||
"intent": "math",
|
||||
"wire": "openai",
|
||||
"request": {
|
||||
"model": "smart/auto",
|
||||
"messages": [
|
||||
{
|
||||
"role": "user",
|
||||
"content": "what is 17 * 23?"
|
||||
}
|
||||
]
|
||||
},
|
||||
"session": null,
|
||||
"minTier": 0,
|
||||
"maxTier": 0,
|
||||
"notes": "plain arithmetic, no proof"
|
||||
},
|
||||
{
|
||||
"id": "math-12",
|
||||
"group": "math",
|
||||
"lang": "en",
|
||||
"intent": "math",
|
||||
"wire": "anthropic",
|
||||
"request": {
|
||||
"model": "smart/auto",
|
||||
"max_tokens": 1024,
|
||||
"messages": [
|
||||
{
|
||||
"role": "user",
|
||||
"content": [
|
||||
{
|
||||
"type": "text",
|
||||
"text": "Compute the expected number of coin flips until two consecutive heads appear, and derive the recurrence you use."
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"session": null,
|
||||
"minTier": 2,
|
||||
"maxTier": 2,
|
||||
"notes": "probability derivation"
|
||||
}
|
||||
]
|
||||
+324
@@ -0,0 +1,324 @@
|
||||
[
|
||||
{
|
||||
"id": "ne-01",
|
||||
"group": "nonenglish",
|
||||
"lang": "pl",
|
||||
"intent": "nonenglish",
|
||||
"wire": "openai",
|
||||
"request": {
|
||||
"model": "smart/auto",
|
||||
"messages": [
|
||||
{
|
||||
"role": "user",
|
||||
"content": "Cześć! Jak się masz dzisiaj?"
|
||||
}
|
||||
]
|
||||
},
|
||||
"session": null,
|
||||
"minTier": 0,
|
||||
"maxTier": 1,
|
||||
"notes": "polish greeting"
|
||||
},
|
||||
{
|
||||
"id": "ne-02",
|
||||
"group": "nonenglish",
|
||||
"lang": "pl",
|
||||
"intent": "nonenglish",
|
||||
"wire": "anthropic",
|
||||
"request": {
|
||||
"model": "smart/auto",
|
||||
"max_tokens": 1024,
|
||||
"messages": [
|
||||
{
|
||||
"role": "user",
|
||||
"content": [
|
||||
{
|
||||
"type": "text",
|
||||
"text": "Zaprojektuj architekturę systemu płatności, który obsłuży 10 tysięcy transakcji na sekundę i będzie odporny na awarie jednego regionu."
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"session": null,
|
||||
"minTier": 1,
|
||||
"maxTier": 2,
|
||||
"notes": "polish architecture design"
|
||||
},
|
||||
{
|
||||
"id": "ne-03",
|
||||
"group": "nonenglish",
|
||||
"lang": "de",
|
||||
"intent": "nonenglish",
|
||||
"wire": "openai",
|
||||
"request": {
|
||||
"model": "smart/auto",
|
||||
"messages": [
|
||||
{
|
||||
"role": "user",
|
||||
"content": "Warum stürzt mein Programm ab? Ich bekomme immer wieder einen Segmentation Fault, wenn ich die Liste sortiere."
|
||||
}
|
||||
]
|
||||
},
|
||||
"session": null,
|
||||
"minTier": 1,
|
||||
"maxTier": 2,
|
||||
"notes": "german crash question"
|
||||
},
|
||||
{
|
||||
"id": "ne-04",
|
||||
"group": "nonenglish",
|
||||
"lang": "de",
|
||||
"intent": "nonenglish",
|
||||
"wire": "anthropic",
|
||||
"request": {
|
||||
"model": "smart/auto",
|
||||
"max_tokens": 1024,
|
||||
"messages": [
|
||||
{
|
||||
"role": "user",
|
||||
"content": [
|
||||
{
|
||||
"type": "text",
|
||||
"text": "Schreibe eine Funktion in Python, die prüft, ob ein String ein Palindrom ist, und füge Tests hinzu."
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"session": null,
|
||||
"minTier": 1,
|
||||
"maxTier": 2,
|
||||
"notes": "german code request"
|
||||
},
|
||||
{
|
||||
"id": "ne-05",
|
||||
"group": "nonenglish",
|
||||
"lang": "zh",
|
||||
"intent": "nonenglish",
|
||||
"wire": "openai",
|
||||
"request": {
|
||||
"model": "smart/auto",
|
||||
"messages": [
|
||||
{
|
||||
"role": "user",
|
||||
"content": "请证明根号2是无理数。"
|
||||
}
|
||||
]
|
||||
},
|
||||
"session": null,
|
||||
"minTier": 1,
|
||||
"maxTier": 2,
|
||||
"notes": "chinese short proof"
|
||||
},
|
||||
{
|
||||
"id": "ne-06",
|
||||
"group": "nonenglish",
|
||||
"lang": "zh",
|
||||
"intent": "nonenglish",
|
||||
"wire": "anthropic",
|
||||
"request": {
|
||||
"model": "smart/auto",
|
||||
"max_tokens": 1024,
|
||||
"messages": [
|
||||
{
|
||||
"role": "user",
|
||||
"content": [
|
||||
{
|
||||
"type": "text",
|
||||
"text": "我的服务在高并发下偶尔出现死锁,请帮我分析可能的原因并给出排查步骤。"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"session": null,
|
||||
"minTier": 1,
|
||||
"maxTier": 2,
|
||||
"notes": "chinese concurrency debugging"
|
||||
},
|
||||
{
|
||||
"id": "ne-07",
|
||||
"group": "nonenglish",
|
||||
"lang": "ja",
|
||||
"intent": "nonenglish",
|
||||
"wire": "openai",
|
||||
"request": {
|
||||
"model": "smart/auto",
|
||||
"messages": [
|
||||
{
|
||||
"role": "user",
|
||||
"content": "このPythonコードをリファクタリングして、関数を小さく分割してください。テストも追加してください。"
|
||||
}
|
||||
]
|
||||
},
|
||||
"session": null,
|
||||
"minTier": 1,
|
||||
"maxTier": 2,
|
||||
"notes": "japanese refactor"
|
||||
},
|
||||
{
|
||||
"id": "ne-08",
|
||||
"group": "nonenglish",
|
||||
"lang": "ja",
|
||||
"intent": "nonenglish",
|
||||
"wire": "anthropic",
|
||||
"request": {
|
||||
"model": "smart/auto",
|
||||
"max_tokens": 1024,
|
||||
"messages": [
|
||||
{
|
||||
"role": "user",
|
||||
"content": [
|
||||
{
|
||||
"type": "text",
|
||||
"text": "今日の天気はどうですか?"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"session": null,
|
||||
"minTier": 0,
|
||||
"maxTier": 1,
|
||||
"notes": "japanese small talk"
|
||||
},
|
||||
{
|
||||
"id": "ne-09",
|
||||
"group": "nonenglish",
|
||||
"lang": "ru",
|
||||
"intent": "nonenglish",
|
||||
"wire": "openai",
|
||||
"request": {
|
||||
"model": "smart/auto",
|
||||
"messages": [
|
||||
{
|
||||
"role": "user",
|
||||
"content": "Объясни, чем отличается оптимистичная блокировка от пессимистичной, и когда лучше выбирать каждую в системе с высокой конкуренцией."
|
||||
}
|
||||
]
|
||||
},
|
||||
"session": null,
|
||||
"minTier": 1,
|
||||
"maxTier": 2,
|
||||
"notes": "russian design question"
|
||||
},
|
||||
{
|
||||
"id": "ne-10",
|
||||
"group": "nonenglish",
|
||||
"lang": "ru",
|
||||
"intent": "nonenglish",
|
||||
"wire": "anthropic",
|
||||
"request": {
|
||||
"model": "smart/auto",
|
||||
"max_tokens": 1024,
|
||||
"messages": [
|
||||
{
|
||||
"role": "user",
|
||||
"content": [
|
||||
{
|
||||
"type": "text",
|
||||
"text": "Доказать, что для любого натурального n сумма первых n нечётных чисел равна n^2."
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"session": null,
|
||||
"minTier": 1,
|
||||
"maxTier": 2,
|
||||
"notes": "russian proof"
|
||||
},
|
||||
{
|
||||
"id": "ne-11",
|
||||
"group": "nonenglish",
|
||||
"lang": "ar",
|
||||
"intent": "nonenglish",
|
||||
"wire": "openai",
|
||||
"request": {
|
||||
"model": "smart/auto",
|
||||
"messages": [
|
||||
{
|
||||
"role": "user",
|
||||
"content": "ما هي عاصمة مصر؟"
|
||||
}
|
||||
]
|
||||
},
|
||||
"session": null,
|
||||
"minTier": 0,
|
||||
"maxTier": 1,
|
||||
"notes": "arabic trivia"
|
||||
},
|
||||
{
|
||||
"id": "ne-12",
|
||||
"group": "nonenglish",
|
||||
"lang": "ar",
|
||||
"intent": "nonenglish",
|
||||
"wire": "anthropic",
|
||||
"request": {
|
||||
"model": "smart/auto",
|
||||
"max_tokens": 1024,
|
||||
"messages": [
|
||||
{
|
||||
"role": "user",
|
||||
"content": [
|
||||
{
|
||||
"type": "text",
|
||||
"text": "اشرح لي كيف أصمم قاعدة بيانات لنظام حجز فنادق يدعم ملايين الحجوزات ويتجنب الحجز المزدوج."
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"session": null,
|
||||
"minTier": 1,
|
||||
"maxTier": 2,
|
||||
"notes": "arabic schema design"
|
||||
},
|
||||
{
|
||||
"id": "ne-13",
|
||||
"group": "nonenglish",
|
||||
"lang": "zh",
|
||||
"intent": "nonenglish",
|
||||
"wire": "openai",
|
||||
"request": {
|
||||
"model": "smart/auto",
|
||||
"messages": [
|
||||
{
|
||||
"role": "user",
|
||||
"content": "把下面这段话翻译成英文:今天下午的会议改到明天上午十点。"
|
||||
}
|
||||
]
|
||||
},
|
||||
"session": null,
|
||||
"minTier": 0,
|
||||
"maxTier": 1,
|
||||
"notes": "chinese translation"
|
||||
},
|
||||
{
|
||||
"id": "ne-14",
|
||||
"group": "nonenglish",
|
||||
"lang": "pl",
|
||||
"intent": "nonenglish",
|
||||
"wire": "anthropic",
|
||||
"request": {
|
||||
"model": "smart/auto",
|
||||
"max_tokens": 1024,
|
||||
"messages": [
|
||||
{
|
||||
"role": "user",
|
||||
"content": [
|
||||
{
|
||||
"type": "text",
|
||||
"text": "Poniższy test pada losowo, raz na dziesięć uruchomień:\n\n--- FAIL: TestWorker (0.31s)\n worker_test.go:58: expected 3 results, got 2\nFAIL\nexit status 1\n\nCo może być przyczyną?"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"session": null,
|
||||
"minTier": 1,
|
||||
"maxTier": 2,
|
||||
"notes": "polish flaky test with a log"
|
||||
}
|
||||
]
|
||||
Vendored
+117
@@ -0,0 +1,117 @@
|
||||
[
|
||||
{
|
||||
"id": "out-01",
|
||||
"group": "output",
|
||||
"lang": "en",
|
||||
"intent": "output",
|
||||
"wire": "openai",
|
||||
"request": {
|
||||
"model": "smart/auto",
|
||||
"messages": [
|
||||
{
|
||||
"role": "user",
|
||||
"content": "Write the complete API documentation for our billing module."
|
||||
}
|
||||
],
|
||||
"max_tokens": 16000
|
||||
},
|
||||
"session": null,
|
||||
"minTier": 1,
|
||||
"maxTier": 2,
|
||||
"notes": "very large requested output"
|
||||
},
|
||||
{
|
||||
"id": "out-02",
|
||||
"group": "output",
|
||||
"lang": "en",
|
||||
"intent": "output",
|
||||
"wire": "openai",
|
||||
"request": {
|
||||
"model": "smart/auto",
|
||||
"messages": [
|
||||
{
|
||||
"role": "user",
|
||||
"content": "Extract the invoice number, date and total from this text: Invoice 1042 dated 2025-03-04 total 118.50 EUR."
|
||||
}
|
||||
],
|
||||
"response_format": {
|
||||
"type": "json_schema",
|
||||
"json_schema": {
|
||||
"name": "invoice",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"number": {
|
||||
"type": "string"
|
||||
},
|
||||
"date": {
|
||||
"type": "string"
|
||||
},
|
||||
"total": {
|
||||
"type": "number"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"number",
|
||||
"date",
|
||||
"total"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"session": null,
|
||||
"minTier": 1,
|
||||
"maxTier": 2,
|
||||
"notes": "strict json schema with extraction"
|
||||
},
|
||||
{
|
||||
"id": "out-03",
|
||||
"group": "output",
|
||||
"lang": "en",
|
||||
"intent": "output",
|
||||
"wire": "openai",
|
||||
"request": {
|
||||
"model": "smart/auto",
|
||||
"messages": [
|
||||
{
|
||||
"role": "user",
|
||||
"content": "Give me three name ideas for a bakery as JSON."
|
||||
}
|
||||
],
|
||||
"response_format": {
|
||||
"type": "json_object"
|
||||
}
|
||||
},
|
||||
"session": null,
|
||||
"minTier": 0,
|
||||
"maxTier": 1,
|
||||
"notes": "json_object for a trivial ask"
|
||||
},
|
||||
{
|
||||
"id": "out-04",
|
||||
"group": "output",
|
||||
"lang": "en",
|
||||
"intent": "output",
|
||||
"wire": "anthropic",
|
||||
"request": {
|
||||
"model": "smart/auto",
|
||||
"max_tokens": 9000,
|
||||
"messages": [
|
||||
{
|
||||
"role": "user",
|
||||
"content": [
|
||||
{
|
||||
"type": "text",
|
||||
"text": "Write a detailed short story about a lighthouse keeper, about 4000 words."
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"session": null,
|
||||
"minTier": 1,
|
||||
"maxTier": 2,
|
||||
"notes": "long output demand for creative text"
|
||||
}
|
||||
]
|
||||
+306
@@ -0,0 +1,306 @@
|
||||
[
|
||||
{
|
||||
"id": "rw-01",
|
||||
"group": "rewrite",
|
||||
"lang": "en",
|
||||
"intent": "rewrite",
|
||||
"wire": "openai",
|
||||
"request": {
|
||||
"model": "smart/auto",
|
||||
"messages": [
|
||||
{
|
||||
"role": "user",
|
||||
"content": "Summarize this article in three bullet points:\n\nThe city council met on Tuesday to discuss the proposed transit levy. Supporters argued that the new bus lines would cut commute times, while opponents said the funding formula placed too much weight on property owners. After three hours of public comment the council voted five to four to send the measure to voters in the spring. Several members said they expected a close result. The city council met on Tuesday to discuss the proposed transit levy. Supporters argued that the new bus lines would cut commute times, while opponents said the funding formula placed too much weight on property owners. After three hours of public comment the council voted five to four to send the measure to voters in the spring. Several members said they expected a close result. The city council met on Tuesday to discuss the proposed transit levy. Supporters argued that the new bus lines would cut commute times, while opponents said the funding formula placed too much weight on property owners. After three hours of public comment the council voted five to four to send the measure to voters in the spring. Several members said they expected a close result. The city council met on Tuesday to discuss the proposed transit levy. Supporters argued that the new bus lines would cut commute times, while opponents said the funding formula placed too much weight on property owners. After three hours of public comment the council voted five to four to send the measure to voters in the spring. Several members said they expected a close result. The city council met on Tuesday to discuss the proposed transit levy. Supporters argued that the new bus lines would cut commute times, while opponents said the funding formula placed too much weight on property owners. After three hours of public comment the council voted five to four to send the measure to voters in the spring. Several members said they expected a close result. The city council met on Tuesday to discuss the proposed transit levy. Supporters argued that the new bus lines would cut commute times, while opponents said the funding formula placed too much weight on property owners. After three hours of public comment the council voted five to four to send the measure to voters in the spring. Several members said they expected a close result. "
|
||||
}
|
||||
]
|
||||
},
|
||||
"session": null,
|
||||
"minTier": 0,
|
||||
"maxTier": 1,
|
||||
"notes": "summary of a plain-text paste"
|
||||
},
|
||||
{
|
||||
"id": "rw-02",
|
||||
"group": "rewrite",
|
||||
"lang": "en",
|
||||
"intent": "rewrite",
|
||||
"wire": "openai",
|
||||
"request": {
|
||||
"model": "smart/auto",
|
||||
"messages": [
|
||||
{
|
||||
"role": "user",
|
||||
"content": "Rewrite this paragraph to sound more formal: hey team, the deploy slipped to friday because the vendor was late, sorry about that."
|
||||
}
|
||||
]
|
||||
},
|
||||
"session": null,
|
||||
"minTier": 0,
|
||||
"maxTier": 0,
|
||||
"notes": "short tone rewrite"
|
||||
},
|
||||
{
|
||||
"id": "rw-03",
|
||||
"group": "rewrite",
|
||||
"lang": "en",
|
||||
"intent": "rewrite",
|
||||
"wire": "anthropic",
|
||||
"request": {
|
||||
"model": "smart/auto",
|
||||
"max_tokens": 1024,
|
||||
"messages": [
|
||||
{
|
||||
"role": "user",
|
||||
"content": [
|
||||
{
|
||||
"type": "text",
|
||||
"text": "Translate to Spanish: The meeting has been moved to Thursday at noon."
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"session": null,
|
||||
"minTier": 0,
|
||||
"maxTier": 0,
|
||||
"notes": "short translation"
|
||||
},
|
||||
{
|
||||
"id": "rw-04",
|
||||
"group": "rewrite",
|
||||
"lang": "en",
|
||||
"intent": "rewrite",
|
||||
"wire": "openai",
|
||||
"request": {
|
||||
"model": "smart/auto",
|
||||
"messages": [
|
||||
{
|
||||
"role": "user",
|
||||
"content": "Proofread the following and fix typos: Their going to the libary tomorow to returne the books."
|
||||
}
|
||||
]
|
||||
},
|
||||
"session": null,
|
||||
"minTier": 0,
|
||||
"maxTier": 0,
|
||||
"notes": "short proofread"
|
||||
},
|
||||
{
|
||||
"id": "rw-05",
|
||||
"group": "rewrite",
|
||||
"lang": "en",
|
||||
"intent": "rewrite",
|
||||
"wire": "openai",
|
||||
"request": {
|
||||
"model": "smart/auto",
|
||||
"messages": [
|
||||
{
|
||||
"role": "user",
|
||||
"content": "Shorten this to one sentence:\n\nThe city council met on Tuesday to discuss the proposed transit levy. Supporters argued that the new bus lines would cut commute times, while opponents said the funding formula placed too much weight on property owners. After three hours of public comment the council voted five to four to send the measure to voters in the spring. Several members said they expected a close result. The city council met on Tuesday to discuss the proposed transit levy. Supporters argued that the new bus lines would cut commute times, while opponents said the funding formula placed too much weight on property owner"
|
||||
}
|
||||
]
|
||||
},
|
||||
"session": null,
|
||||
"minTier": 0,
|
||||
"maxTier": 1,
|
||||
"notes": "shorten a paste"
|
||||
},
|
||||
{
|
||||
"id": "rw-06",
|
||||
"group": "rewrite",
|
||||
"lang": "en",
|
||||
"intent": "rewrite",
|
||||
"wire": "anthropic",
|
||||
"request": {
|
||||
"model": "smart/auto",
|
||||
"max_tokens": 1024,
|
||||
"messages": [
|
||||
{
|
||||
"role": "user",
|
||||
"content": [
|
||||
{
|
||||
"type": "text",
|
||||
"text": "tl;dr of the text below please\n\nThe city council met on Tuesday to discuss the proposed transit levy. Supporters argued that the new bus lines would cut commute times, while opponents said the funding formula placed too much weight on property owners. After three hours of public comment the council voted five to four to send the measure to voters in the spring. Several members said they expected a close result. The city council met on Tuesday to discuss the proposed transit levy. Supporters argued that the new bus lines would cut commute times, while opponents said the funding formula placed too much weight on property owners. After three hours of public comment the council voted five to four to send the measure to voters in the spring. Several members said they expected a close result. The city council met on Tuesday to discuss the proposed transit levy. Supporters argued that the new bus lines would cut commute times, while opponents said the funding formula placed too much weight on property owners. After three hours of public comment the council voted five to four to send the measure to voters in the spring. Several members said they expected a close result. The city council met on Tuesday to discuss the proposed transit levy. Supporters argued that the new bus lines would cut commute times, while opponents said the funding formula placed too much weight on property owners. After three hours of public comment the council voted five to four to send the measure to voters in the spring. Several members said they expected a close result. The city council met on Tuesday to discuss the proposed transit levy. Supporters argued that the new bus lines would cut commute times, while opponents said the funding formula placed too much weight on property owners. After three hours of public comment the council voted five to four to send the measure to voters in the spring. Several members said they expected a close result. The city council met on Tuesday to discuss the proposed transit levy. Supporters argued that the new bus lines would cut commute times, while opponents said the funding formula placed too much weight on property owners. After three hours of public comment the council voted five to four to send the measure to voters in the spring. Several members said they expected a close result. "
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"session": null,
|
||||
"minTier": 0,
|
||||
"maxTier": 1,
|
||||
"notes": "tl;dr of a paste"
|
||||
},
|
||||
{
|
||||
"id": "rw-07",
|
||||
"group": "rewrite",
|
||||
"lang": "en",
|
||||
"intent": "rewrite",
|
||||
"wire": "openai",
|
||||
"request": {
|
||||
"model": "smart/auto",
|
||||
"messages": [
|
||||
{
|
||||
"role": "user",
|
||||
"content": "Rephrase this error message so a non-technical user understands it: 'Connection refused: upstream unavailable'"
|
||||
}
|
||||
]
|
||||
},
|
||||
"session": null,
|
||||
"minTier": 0,
|
||||
"maxTier": 1,
|
||||
"notes": "rewrite of a short message"
|
||||
},
|
||||
{
|
||||
"id": "rw-08",
|
||||
"group": "rewrite",
|
||||
"lang": "en",
|
||||
"intent": "rewrite",
|
||||
"wire": "openai",
|
||||
"request": {
|
||||
"model": "smart/auto",
|
||||
"messages": [
|
||||
{
|
||||
"role": "user",
|
||||
"content": "Summarize the following meeting notes into action items.\n\nAlice: we need to finish the budget draft by Friday.\nBob: I will contact the vendor about the late shipment.\nCarol: the Q3 slides still need review."
|
||||
}
|
||||
]
|
||||
},
|
||||
"session": null,
|
||||
"minTier": 0,
|
||||
"maxTier": 1,
|
||||
"notes": "short notes summary"
|
||||
},
|
||||
{
|
||||
"id": "rw-09",
|
||||
"group": "rewrite",
|
||||
"lang": "en",
|
||||
"intent": "rewrite",
|
||||
"wire": "anthropic",
|
||||
"request": {
|
||||
"model": "smart/auto",
|
||||
"max_tokens": 1024,
|
||||
"messages": [
|
||||
{
|
||||
"role": "user",
|
||||
"content": [
|
||||
{
|
||||
"type": "text",
|
||||
"text": "Can you rewrite my cover letter intro to be more concise? 'I am writing to express my sincere interest in the position of Senior Analyst at your esteemed company, which I have admired for many years.'"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"session": null,
|
||||
"minTier": 0,
|
||||
"maxTier": 1,
|
||||
"notes": "short rewrite"
|
||||
},
|
||||
{
|
||||
"id": "rw-10",
|
||||
"group": "rewrite",
|
||||
"lang": "en",
|
||||
"intent": "rewrite",
|
||||
"wire": "openai",
|
||||
"request": {
|
||||
"model": "smart/auto",
|
||||
"messages": [
|
||||
{
|
||||
"role": "user",
|
||||
"content": "Translate this paragraph into German and keep the tone friendly:\n\nThe city council met on Tuesday to discuss the proposed transit levy. Supporters argued that the new bus lines would cut commute times, while opponents said the funding formula placed too much weight on property owners. After three hours of public comment the council voted five to four to send the measure to voters in the spring. Several members said they expected a close result. The city council met on Tuesday to discuss the proposed transit levy. Supporters argued that the new bus lines would "
|
||||
}
|
||||
]
|
||||
},
|
||||
"session": null,
|
||||
"minTier": 0,
|
||||
"maxTier": 1,
|
||||
"notes": "translation of a paste"
|
||||
},
|
||||
{
|
||||
"id": "rw-11",
|
||||
"group": "rewrite",
|
||||
"lang": "en",
|
||||
"intent": "rewrite",
|
||||
"wire": "openai",
|
||||
"request": {
|
||||
"model": "smart/auto",
|
||||
"messages": [
|
||||
{
|
||||
"role": "user",
|
||||
"content": "Summarize the key points of this changelog for release notes:\n\n- Fixed crash on startup when config is empty\n- Added dark mode\n- Improved search latency by 30%\n- Removed deprecated v1 API"
|
||||
}
|
||||
]
|
||||
},
|
||||
"session": null,
|
||||
"minTier": 0,
|
||||
"maxTier": 1,
|
||||
"notes": "summarize a short list"
|
||||
},
|
||||
{
|
||||
"id": "rw-12",
|
||||
"group": "rewrite",
|
||||
"lang": "en",
|
||||
"intent": "rewrite",
|
||||
"wire": "anthropic",
|
||||
"request": {
|
||||
"model": "smart/auto",
|
||||
"max_tokens": 1024,
|
||||
"messages": [
|
||||
{
|
||||
"role": "user",
|
||||
"content": [
|
||||
{
|
||||
"type": "text",
|
||||
"text": "Paraphrase the following sentence three different ways: The quick brown fox jumps over the lazy dog."
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"session": null,
|
||||
"minTier": 0,
|
||||
"maxTier": 0,
|
||||
"notes": "paraphrase a sentence"
|
||||
},
|
||||
{
|
||||
"id": "rw-13",
|
||||
"group": "rewrite",
|
||||
"lang": "en",
|
||||
"intent": "rewrite",
|
||||
"wire": "openai",
|
||||
"request": {
|
||||
"model": "smart/auto",
|
||||
"messages": [
|
||||
{
|
||||
"role": "user",
|
||||
"content": "summarise this email thread for my manager, keep it under 100 words:\n\nThe city council met on Tuesday to discuss the proposed transit levy. Supporters argued that the new bus lines would cut commute times, while opponents said the funding formula placed too much weight on property owners. After three hours of public comment the council voted five to four to send the measure to voters in the spring. Several members said they expected a close result. The city council met on Tuesday to discuss the proposed transit levy. Supporters argued that the new bus lines would cut commute times, while opponents said the funding formula placed too much weight on property owners. After three hours of public comment the council voted five to four to send the measure to voters in the spring. Several members said they expected a close result. The city council met on Tuesday to discuss the proposed transit levy. Supporters argued that the new bus lines would cut commute times"
|
||||
}
|
||||
]
|
||||
},
|
||||
"session": null,
|
||||
"minTier": 0,
|
||||
"maxTier": 1,
|
||||
"notes": "summarise a paste"
|
||||
},
|
||||
{
|
||||
"id": "rw-14",
|
||||
"group": "rewrite",
|
||||
"lang": "en",
|
||||
"intent": "rewrite",
|
||||
"wire": "openai",
|
||||
"request": {
|
||||
"model": "smart/auto",
|
||||
"messages": [
|
||||
{
|
||||
"role": "user",
|
||||
"content": "Proofread and shorten this product description: Our amazing blender is the very best blender that you can possibly buy for the money, it blends everything."
|
||||
}
|
||||
]
|
||||
},
|
||||
"session": null,
|
||||
"minTier": 0,
|
||||
"maxTier": 0,
|
||||
"notes": "short proofread and shorten"
|
||||
}
|
||||
]
|
||||
Vendored
+10500
File diff suppressed because one or more lines are too long
+17048
File diff suppressed because it is too large
Load Diff
Vendored
+278
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user