Skip to content

armgit / eve

Public Imported from GitHub
0

The Open Framework for Building Agents

fix(eve): resolve -thinking suffix models correctly (#2523)

Krish56514d9533dd
diff --git a/.changeset/fix-thinking-model-catalog-lookup.md b/.changeset/fix-thinking-model-catalog-lookup.md
new file mode 100644
index 000000000..0c948222f
--- /dev/null
+++ b/.changeset/fix-thinking-model-catalog-lookup.md
@@ -0,0 +1,6 @@
+---
+"eve": patch
+---
+
+Models with slug ending in `-thinking` are now resolved to the
+correct model instead of failing with `does not have known AI Gateway context window metadata` error or silently using the base model's context window.
diff --git a/apps/docs/registry.json b/apps/docs/registry.json
index 45e94fa7b..cb8882c6c 100644
--- a/apps/docs/registry.json
+++ b/apps/docs/registry.json
@@ -33,9 +33,7 @@
"type": "registry:item",
"title": "Self-modification (Experimental)",
"description": "Add an experimental, development-only source editing subagent to an eve project.",
- "dependencies": [
- "@eve/self-modification"
- ],
+ "dependencies": ["@eve/self-modification"],
"files": [
{
"path": "registry/experimental/self-modification/agent.ts",
@@ -59,9 +57,7 @@
"type": "registry:item",
"title": "agent-browser",
"description": "Add browser automation tools backed by agent-browser to an eve agent.",
- "dependencies": [
- "@agent-browser/eve"
- ],
+ "dependencies": ["@agent-browser/eve"],
"files": [
{
"path": "registry/extensions/agent-browser.ts",
@@ -75,9 +71,7 @@
"type": "registry:item",
"title": "Browserbase",
"description": "Search, fetch, and automate the web with Browserbase and Stagehand.",
- "dependencies": [
- "@browserbasehq/eve"
- ],
+ "dependencies": ["@browserbasehq/eve"],
"envVars": {
"BROWSERBASE_API_KEY": ""
},
@@ -94,9 +88,7 @@
"type": "registry:item",
"title": "BlitzReels",
"description": "Turn long videos into short clips, generate media, repair edits, and export.",
- "dependencies": [
- "@blitzreels/eve"
- ],
+ "dependencies": ["@blitzreels/eve"],
"envVars": {
"BLITZREELS_API_KEY": ""
},
@@ -113,10 +105,7 @@
"type": "registry:item",
"title": "GitHub Tools",
"description": "Add scoped GitHub tools with Vercel Connect authentication and approval rules.",
- "dependencies": [
- "@github-tools/eve-extension",
- "@vercel/connect"
- ],
+ "dependencies": ["@github-tools/eve-extension", "@vercel/connect"],
"envVars": {
"GITHUB_TOKEN": ""
},
@@ -133,9 +122,7 @@
"type": "registry:item",
"title": "Jetty",
"description": "Grade agent turns, compare experiments, and store durable evaluation trajectories.",
- "dependencies": [
- "@jetty/eve"
- ],
+ "dependencies": ["@jetty/eve"],
"envVars": {
"JETTY_API_TOKEN": "",
"JETTY_COLLECTION": ""
@@ -153,9 +140,7 @@
"type": "registry:item",
"title": "KERNEL",
"description": "Let your eve agent use the Internet with KERNEL browser infrastructure, observability, and stealth.",
- "dependencies": [
- "@onkernel/eve-extension"
- ],
+ "dependencies": ["@onkernel/eve-extension"],
"envVars": {
"KERNEL_API_KEY": ""
},
@@ -172,9 +157,7 @@
"type": "registry:item",
"title": "Upstash AgentKit",
"description": "Add long-term memory, Redis Search, and durable chat history with Upstash Redis.",
- "dependencies": [
- "@upstash/agentkit-eve-extension"
- ],
+ "dependencies": ["@upstash/agentkit-eve-extension"],
"envVars": {
"UPSTASH_REDIS_REST_URL": "",
"UPSTASH_REDIS_REST_TOKEN": ""
@@ -192,9 +175,7 @@
"type": "registry:item",
"title": "Kybernesis Arcana",
"description": "Give an eve agent a workspace-scoped long-term memory with recall, storage, and brain notes.",
- "dependencies": [
- "@kybernesis/arcana"
- ],
+ "dependencies": ["@kybernesis/arcana"],
"envVars": {
"ARCANA_API_KEY": "",
"ARCANA_WORKSPACE": ""
@@ -212,9 +193,7 @@
"type": "registry:item",
"title": "Hindsight",
"description": "Recall relevant context before every turn and retain each exchange automatically.",
- "dependencies": [
- "@vectorize-io/hindsight-eve"
- ],
+ "dependencies": ["@vectorize-io/hindsight-eve"],
"envVars": {
"HINDSIGHT_API_KEY": "",
"HINDSIGHT_API_URL": "",
@@ -260,20 +239,12 @@
"command": "eve",
"package": "eve",
"bin": "eve",
- "args": [
- "integration",
- "connect",
- "vercel",
- "vercel",
- "vercel"
- ]
+ "args": ["integration", "connect", "vercel", "vercel", "vercel"]
},
"requires": ">=0.29.0"
}
},
- "dependencies": [
- "@vercel/connect"
- ],
+ "dependencies": ["@vercel/connect"],
"files": [
{
"path": "registry/connections/vercel.ts",
@@ -293,20 +264,12 @@
"command": "eve",
"package": "eve",
"bin": "eve",
- "args": [
- "integration",
- "connect",
- "linear",
- "mcp.linear.app",
- "linear"
- ]
+ "args": ["integration", "connect", "linear", "mcp.linear.app", "linear"]
},
"requires": ">=0.29.0"
}
},
- "dependencies": [
- "@vercel/connect"
- ],
+ "dependencies": ["@vercel/connect"],
"files": [
{
"path": "registry/connections/linear.ts",
@@ -326,20 +289,12 @@
"command": "eve",
"package": "eve",
"bin": "eve",
- "args": [
- "integration",
- "connect",
- "notion",
- "mcp.notion.com",
- "notion"
- ]
+ "args": ["integration", "connect", "notion", "mcp.notion.com", "notion"]
},
"requires": ">=0.29.0"
}
},
- "dependencies": [
- "@vercel/connect"
- ],
+ "dependencies": ["@vercel/connect"],
"files": [
{
"path": "registry/connections/notion.ts",
@@ -359,20 +314,12 @@
"command": "eve",
"package": "eve",
"bin": "eve",
- "args": [
- "integration",
- "connect",
- "datadog",
- "mcp.datadoghq.com",
- "datadog"
- ]
+ "args": ["integration", "connect", "datadog", "mcp.datadoghq.com", "datadog"]
},
"requires": ">=0.29.0"
}
},
- "dependencies": [
- "@vercel/connect"
- ],
+ "dependencies": ["@vercel/connect"],
"files": [
{
"path": "registry/connections/datadog.ts",
@@ -392,20 +339,12 @@
"command": "eve",
"package": "eve",
"bin": "eve",
- "args": [
- "integration",
- "connect",
- "honeycomb",
- "mcp.honeycomb.io",
- "honeycomb"
- ]
+ "args": ["integration", "connect", "honeycomb", "mcp.honeycomb.io", "honeycomb"]
},
"requires": ">=0.29.0"
}
},
- "dependencies": [
- "@vercel/connect"
- ],
+ "dependencies": ["@vercel/connect"],
"files": [
{
"path": "registry/connections/honeycomb.ts",
@@ -440,12 +379,8 @@
"requires": ">=0.29.0"
}
},
- "dependencies": [
- "@vercel/connect"
- ],
- "devDependencies": [
- "vercel@>=58.7.0"
- ],
+ "dependencies": ["@vercel/connect"],
+ "devDependencies": ["vercel@>=58.7.0"],
"files": [
{
"path": "registry/connections/agentcard.ts",
@@ -465,20 +400,12 @@
"command": "eve",
"package": "eve",
"bin": "eve",
- "args": [
- "integration",
- "connect",
- "airtable",
- "airtable",
- "airtable"
- ]
+ "args": ["integration", "connect", "airtable", "airtable", "airtable"]
},
"requires": ">=0.29.0"
}
},
- "dependencies": [
- "@vercel/connect"
- ],
+ "dependencies": ["@vercel/connect"],
"files": [
{
"path": "registry/connections/airtable.ts",
@@ -498,20 +425,12 @@
"command": "eve",
"package": "eve",
"bin": "eve",
- "args": [
- "integration",
- "connect",
- "bitly",
- "bitly",
- "bitly"
- ]
+ "args": ["integration", "connect", "bitly", "bitly", "bitly"]
},
"requires": ">=0.29.0"
}
},
- "dependencies": [
- "@vercel/connect"
- ],
+ "dependencies": ["@vercel/connect"],
"files": [
{
"path": "registry/connections/bitly.ts",
@@ -531,20 +450,12 @@
"command": "eve",
"package": "eve",
"bin": "eve",
- "args": [
- "integration",
- "connect",
- "brex",
- "brex",
- "brex"
- ]
+ "args": ["integration", "connect", "brex", "brex", "brex"]
},
"requires": ">=0.29.0"
}
},
- "dependencies": [
- "@vercel/connect"
- ],
+ "dependencies": ["@vercel/connect"],
"files": [
{
"path": "registry/connections/brex.ts",
@@ -564,20 +475,12 @@
"command": "eve",
"package": "eve",
"bin": "eve",
- "args": [
- "integration",
- "connect",
- "candid",
- "candid",
- "candid"
- ]
+ "args": ["integration", "connect", "candid", "candid", "candid"]
},
"requires": ">=0.29.0"
}
},
- "dependencies": [
- "@vercel/connect"
- ],
+ "dependencies": ["@vercel/connect"],
"files": [
{
"path": "registry/connections/candid.ts",
@@ -597,20 +500,12 @@
"command": "eve",
"package": "eve",
"bin": "eve",
- "args": [
- "integration",
- "connect",
- "clickhouse",
- "clickhouse",
- "clickhouse"
- ]
+ "args": ["integration", "connect", "clickhouse", "clickhouse", "clickhouse"]
},
"requires": ">=0.29.0"
}
},
- "dependencies": [
- "@vercel/connect"
- ],
+ "dependencies": ["@vercel/connect"],
"files": [
{
"path": "registry/connections/clickhouse.ts",
@@ -630,20 +525,12 @@
"command": "eve",
"package": "eve",
"bin": "eve",
- "args": [
- "integration",
- "connect",
- "cloudinary",
- "cloudinary",
- "cloudinary"
- ]
+ "args": ["integration", "connect", "cloudinary", "cloudinary", "cloudinary"]
},
"requires": ">=0.29.0"
}
},
- "dependencies": [
- "@vercel/connect"
- ],
+ "dependencies": ["@vercel/connect"],
"files": [
{
"path": "registry/connections/cloudinary.ts",
@@ -663,20 +550,12 @@
"command": "eve",
"package": "eve",
"bin": "eve",
- "args": [
- "integration",
- "connect",
- "coda",
- "coda",
- "coda"
- ]
+ "args": ["integration", "connect", "coda", "coda", "coda"]
},
"requires": ">=0.29.0"
}
},
- "dependencies": [
- "@vercel/connect"
- ],
+ "dependencies": ["@vercel/connect"],
"files": [
{
"path": "registry/connections/coda.ts",
@@ -696,20 +575,12 @@
"command": "eve",
"package": "eve",
"bin": "eve",
- "args": [
- "integration",
- "connect",
- "context",
- "mcp.context.dev",
- "context"
- ]
+ "args": ["integration", "connect", "context", "mcp.context.dev", "context"]
},
"requires": ">=0.29.0"
}
},
- "dependencies": [
- "@vercel/connect"
- ],
+ "dependencies": ["@vercel/connect"],
"files": [
{
"path": "registry/connections/context.ts",
@@ -729,20 +600,12 @@
"command": "eve",
"package": "eve",
"bin": "eve",
- "args": [
- "integration",
- "connect",
- "egnyte",
- "egnyte",
- "egnyte"
- ]
+ "args": ["integration", "connect", "egnyte", "egnyte", "egnyte"]
},
"requires": ">=0.29.0"
}
},
- "dependencies": [
- "@vercel/connect"
- ],
+ "dependencies": ["@vercel/connect"],
"files": [
{
"path": "registry/connections/egnyte.ts",
@@ -762,20 +625,12 @@
"command": "eve",
"package": "eve",
"bin": "eve",
- "args": [
- "integration",
- "connect",
- "embat",
- "embat",
- "embat"
- ]
+ "args": ["integration", "connect", "embat", "embat", "embat"]
},
"requires": ">=0.29.0"
}
},
- "dependencies": [
- "@vercel/connect"
- ],
+ "dependencies": ["@vercel/connect"],
"files": [
{
"path": "registry/connections/embat.ts",
@@ -795,20 +650,12 @@
"command": "eve",
"package": "eve",
"bin": "eve",
- "args": [
- "integration",
- "connect",
- "hugging-face",
- "hugging-face",
- "hugging-face"
- ]
+ "args": ["integration", "connect", "hugging-face", "hugging-face", "hugging-face"]
},
"requires": ">=0.29.0"
}
},
- "dependencies": [
- "@vercel/connect"
- ],
+ "dependencies": ["@vercel/connect"],
"files": [
{
"path": "registry/connections/hugging-face.ts",
@@ -828,20 +675,12 @@
"command": "eve",
"package": "eve",
"bin": "eve",
- "args": [
- "integration",
- "connect",
- "local-falcon",
- "local-falcon",
- "local-falcon"
- ]
+ "args": ["integration", "connect", "local-falcon", "local-falcon", "local-falcon"]
},
"requires": ">=0.29.0"
}
},
- "dependencies": [
- "@vercel/connect"
- ],
+ "dependencies": ["@vercel/connect"],
"files": [
{
"path": "registry/connections/local-falcon.ts",
@@ -861,20 +700,12 @@
"command": "eve",
"package": "eve",
"bin": "eve",
- "args": [
- "integration",
- "connect",
- "make",
- "make",
- "make"
- ]
+ "args": ["integration", "connect", "make", "make", "make"]
},
"requires": ">=0.29.0"
}
},
- "dependencies": [
- "@vercel/connect"
- ],
+ "dependencies": ["@vercel/connect"],
"files": [
{
"path": "registry/connections/make.ts",
@@ -894,20 +725,12 @@
"command": "eve",
"package": "eve",
"bin": "eve",
- "args": [
- "integration",
- "connect",
- "manufact",
- "manufact",
- "manufact"
- ]
+ "args": ["integration", "connect", "manufact", "manufact", "manufact"]
},
"requires": ">=0.29.0"
}
},
- "dependencies": [
- "@vercel/connect"
- ],
+ "dependencies": ["@vercel/connect"],
"files": [
{
"path": "registry/connections/manufact.ts",
@@ -927,20 +750,12 @@
"command": "eve",
"package": "eve",
"bin": "eve",
- "args": [
- "integration",
- "connect",
- "mem0",
- "mem0",
- "mem0"
- ]
+ "args": ["integration", "connect", "mem0", "mem0", "mem0"]
},
"requires": ">=0.29.0"
}
},
- "dependencies": [
- "@vercel/connect"
- ],
+ "dependencies": ["@vercel/connect"],
"files": [
{
"path": "registry/connections/mem0.ts",
@@ -960,20 +775,12 @@
"command": "eve",
"package": "eve",
"bin": "eve",
- "args": [
- "integration",
- "connect",
- "miro",
- "miro",
- "miro"
- ]
+ "args": ["integration", "connect", "miro", "miro", "miro"]
},
"requires": ">=0.29.0"
}
},
- "dependencies": [
- "@vercel/connect"
- ],
+ "dependencies": ["@vercel/connect"],
"files": [
{
"path": "registry/connections/miro.ts",
@@ -993,20 +800,12 @@
"command": "eve",
"package": "eve",
"bin": "eve",
- "args": [
- "integration",
- "connect",
- "mixpanel",
- "mixpanel",
- "mixpanel"
- ]
+ "args": ["integration", "connect", "mixpanel", "mixpanel", "mixpanel"]
},
"requires": ">=0.29.0"
}
},
- "dependencies": [
- "@vercel/connect"
- ],
+ "dependencies": ["@vercel/connect"],
"files": [
{
"path": "registry/connections/mixpanel.ts",
@@ -1026,20 +825,12 @@
"command": "eve",
"package": "eve",
"bin": "eve",
- "args": [
- "integration",
- "connect",
- "natural",
- "mcp.natural.com",
- "natural"
- ]
+ "args": ["integration", "connect", "natural", "mcp.natural.com", "natural"]
},
"requires": ">=0.29.0"
}
},
- "dependencies": [
- "@vercel/connect"
- ],
+ "dependencies": ["@vercel/connect"],
"files": [
{
"path": "registry/connections/natural.ts",
@@ -1059,20 +850,12 @@
"command": "eve",
"package": "eve",
"bin": "eve",
- "args": [
- "integration",
- "connect",
- "netlify",
- "netlify",
- "netlify"
- ]
+ "args": ["integration", "connect", "netlify", "netlify", "netlify"]
},
"requires": ">=0.29.0"
}
},
- "dependencies": [
- "@vercel/connect"
- ],
+ "dependencies": ["@vercel/connect"],
"files": [
{
"path": "registry/connections/netlify.ts",
@@ -1092,20 +875,12 @@
"command": "eve",
"package": "eve",
"bin": "eve",
- "args": [
- "integration",
- "connect",
- "oreilly",
- "oreilly",
- "oreilly"
- ]
+ "args": ["integration", "connect", "oreilly", "oreilly", "oreilly"]
},
"requires": ">=0.29.0"
}
},
- "dependencies": [
- "@vercel/connect"
- ],
+ "dependencies": ["@vercel/connect"],
"files": [
{
"path": "registry/connections/oreilly.ts",
@@ -1125,20 +900,12 @@
"command": "eve",
"package": "eve",
"bin": "eve",
- "args": [
- "integration",
- "connect",
- "planetscale",
- "planetscale",
- "planetscale"
- ]
+ "args": ["integration", "connect", "planetscale", "planetscale", "planetscale"]
},
"requires": ">=0.29.0"
}
},
- "dependencies": [
- "@vercel/connect"
- ],
+ "dependencies": ["@vercel/connect"],
"files": [
{
"path": "registry/connections/planetscale.ts",
@@ -1158,20 +925,12 @@
"command": "eve",
"package": "eve",
"bin": "eve",
- "args": [
- "integration",
- "connect",
- "posthog",
- "posthog",
- "posthog"
- ]
+ "args": ["integration", "connect", "posthog", "posthog", "posthog"]
},
"requires": ">=0.29.0"
}
},
- "dependencies": [
- "@vercel/connect"
- ],
+ "dependencies": ["@vercel/connect"],
"files": [
{
"path": "registry/connections/posthog.ts",
@@ -1191,20 +950,12 @@
"command": "eve",
"package": "eve",
"bin": "eve",
- "args": [
- "integration",
- "connect",
- "postman",
- "postman",
- "postman"
- ]
+ "args": ["integration", "connect", "postman", "postman", "postman"]
},
"requires": ">=0.29.0"
}
},
- "dependencies": [
- "@vercel/connect"
- ],
+ "dependencies": ["@vercel/connect"],
"files": [
{
"path": "registry/connections/postman.ts",
@@ -1224,20 +975,12 @@
"command": "eve",
"package": "eve",
"bin": "eve",
- "args": [
- "integration",
- "connect",
- "razorpay",
- "razorpay",
- "razorpay"
- ]
+ "args": ["integration", "connect", "razorpay", "razorpay", "razorpay"]
},
"requires": ">=0.29.0"
}
},
- "dependencies": [
- "@vercel/connect"
- ],
+ "dependencies": ["@vercel/connect"],
"files": [
{
"path": "registry/connections/razorpay.ts",
@@ -1257,20 +1000,12 @@
"command": "eve",
"package": "eve",
"bin": "eve",
- "args": [
- "integration",
- "connect",
- "sentry",
- "sentry",
- "sentry"
- ]
+ "args": ["integration", "connect", "sentry", "sentry", "sentry"]
},
"requires": ">=0.29.0"
}
},
- "dependencies": [
- "@vercel/connect"
- ],
+ "dependencies": ["@vercel/connect"],
"files": [
{
"path": "registry/connections/sentry.ts",
@@ -1290,20 +1025,12 @@
"command": "eve",
"package": "eve",
"bin": "eve",
- "args": [
- "integration",
- "connect",
- "similarweb",
- "similarweb",
- "similarweb"
- ]
+ "args": ["integration", "connect", "similarweb", "similarweb", "similarweb"]
},
"requires": ">=0.29.0"
}
},
- "dependencies": [
- "@vercel/connect"
- ],
+ "dependencies": ["@vercel/connect"],
"files": [
{
"path": "registry/connections/similarweb.ts",
@@ -1323,11 +1050,7 @@
"command": "eve",
"package": "eve",
"bin": "eve",
- "args": [
- "integration",
- "setup",
- "shopify"
- ]
+ "args": ["integration", "setup", "shopify"]
},
"requires": ">=0.46.1"
}
@@ -1351,20 +1074,12 @@
"command": "eve",
"package": "eve",
"bin": "eve",
- "args": [
- "integration",
- "connect",
- "stripe",
- "stripe",
- "stripe"
- ]
+ "args": ["integration", "connect", "stripe", "stripe", "stripe"]
},
"requires": ">=0.29.0"
}
},
- "dependencies": [
- "@vercel/connect"
- ],
+ "dependencies": ["@vercel/connect"],
"files": [
{
"path": "registry/connections/stripe.ts",
@@ -1384,20 +1099,12 @@
"command": "eve",
"package": "eve",
"bin": "eve",
- "args": [
- "integration",
- "connect",
- "supabase",
- "supabase",
- "supabase"
- ]
+ "args": ["integration", "connect", "supabase", "supabase", "supabase"]
},
"requires": ">=0.29.0"
}
},
- "dependencies": [
- "@vercel/connect"
- ],
+ "dependencies": ["@vercel/connect"],
"files": [
{
"path": "registry/connections/supabase.ts",
@@ -1417,20 +1124,12 @@
"command": "eve",
"package": "eve",
"bin": "eve",
- "args": [
- "integration",
- "connect",
- "ticket-tailor",
- "ticket-tailor",
- "ticket-tailor"
- ]
+ "args": ["integration", "connect", "ticket-tailor", "ticket-tailor", "ticket-tailor"]
},
"requires": ">=0.29.0"
}
},
- "dependencies": [
- "@vercel/connect"
- ],
+ "dependencies": ["@vercel/connect"],
"files": [
{
"path": "registry/connections/ticket-tailor.ts",
@@ -1450,20 +1149,12 @@
"command": "eve",
"package": "eve",
"bin": "eve",
- "args": [
- "integration",
- "connect",
- "ticktick",
- "ticktick",
- "ticktick"
- ]
+ "args": ["integration", "connect", "ticktick", "ticktick", "ticktick"]
},
"requires": ">=0.29.0"
}
},
- "dependencies": [
- "@vercel/connect"
- ],
+ "dependencies": ["@vercel/connect"],
"files": [
{
"path": "registry/connections/ticktick.ts",
@@ -1483,20 +1174,12 @@
"command": "eve",
"package": "eve",
"bin": "eve",
- "args": [
- "integration",
- "connect",
- "tinybird",
- "tinybird",
- "tinybird"
- ]
+ "args": ["integration", "connect", "tinybird", "tinybird", "tinybird"]
},
"requires": ">=0.29.0"
}
},
- "dependencies": [
- "@vercel/connect"
- ],
+ "dependencies": ["@vercel/connect"],
"files": [
{
"path": "registry/connections/tinybird.ts",
@@ -1516,20 +1199,12 @@
"command": "eve",
"package": "eve",
"bin": "eve",
- "args": [
- "integration",
- "connect",
- "todoist",
- "todoist",
- "todoist"
- ]
+ "args": ["integration", "connect", "todoist", "todoist", "todoist"]
},
"requires": ">=0.29.0"
}
},
- "dependencies": [
- "@vercel/connect"
- ],
+ "dependencies": ["@vercel/connect"],
"files": [
{
"path": "registry/connections/todoist.ts",
@@ -1549,20 +1224,12 @@
"command": "eve",
"package": "eve",
"bin": "eve",
- "args": [
- "integration",
- "connect",
- "webflow",
- "webflow",
- "webflow"
- ]
+ "args": ["integration", "connect", "webflow", "webflow", "webflow"]
},
"requires": ">=0.29.0"
}
},
- "dependencies": [
- "@vercel/connect"
- ],
+ "dependencies": ["@vercel/connect"],
"files": [
{
"path": "registry/connections/webflow.ts",
@@ -1582,20 +1249,12 @@
"command": "eve",
"package": "eve",
"bin": "eve",
- "args": [
- "integration",
- "connect",
- "wix",
- "wix",
- "wix"
- ]
+ "args": ["integration", "connect", "wix", "wix", "wix"]
},
"requires": ">=0.29.0"
}
},
- "dependencies": [
- "@vercel/connect"
- ],
+ "dependencies": ["@vercel/connect"],
"files": [
{
"path": "registry/connections/wix.ts",
@@ -1615,20 +1274,12 @@
"command": "eve",
"package": "eve",
"bin": "eve",
- "args": [
- "integration",
- "connect",
- "zapier",
- "zapier",
- "zapier"
- ]
+ "args": ["integration", "connect", "zapier", "zapier", "zapier"]
},
"requires": ">=0.29.0"
}
},
- "dependencies": [
- "@vercel/connect"
- ],
+ "dependencies": ["@vercel/connect"],
"files": [
{
"path": "registry/connections/zapier.ts",
@@ -1648,20 +1299,12 @@
"command": "eve",
"package": "eve",
"bin": "eve",
- "args": [
- "integration",
- "connect",
- "zomato",
- "zomato",
- "zomato"
- ]
+ "args": ["integration", "connect", "zomato", "zomato", "zomato"]
},
"requires": ">=0.29.0"
}
},
- "dependencies": [
- "@vercel/connect"
- ],
+ "dependencies": ["@vercel/connect"],
"files": [
{
"path": "registry/connections/zomato.ts",
@@ -1681,40 +1324,28 @@
"command": "eve",
"package": "eve",
"bin": "eve",
- "args": [
- "integration",
- "setup",
- "slack"
- ]
+ "args": ["integration", "setup", "slack"]
},
"requires": ">=0.33.0",
"docs": "/docs/channels/slack",
"implementation": "native"
}
},
- "dependencies": [
- "@vercel/connect@>=0.4.2"
- ]
+ "dependencies": ["@vercel/connect@>=0.4.2"]
},
{
"name": "channel/discord",
"type": "registry:item",
"title": "Discord",
"description": "Connect an eve agent to Discord with guided connector and slash-command setup.",
- "dependencies": [
- "@vercel/connect@>=0.6.0"
- ],
+ "dependencies": ["@vercel/connect@>=0.6.0"],
"meta": {
"eve": {
"setup": {
"command": "eve",
"package": "eve",
"bin": "eve",
- "args": [
- "integration",
- "setup",
- "discord"
- ]
+ "args": ["integration", "setup", "discord"]
},
"requires": ">=0.33.0",
"docs": "/docs/channels/discord",
@@ -1795,9 +1426,7 @@
"type": "registry:item",
"title": "Blooio",
"description": "Send and receive iMessage, RCS, and SMS through Blooio, with reactions, typing indicators, read receipts, polls, groups, capability checks, and history.",
- "dependencies": [
- "eve-channel-blooio"
- ],
+ "dependencies": ["eve-channel-blooio"],
"envVars": {
"BLOOIO_API_KEY": "",
"BLOOIO_WEBHOOK_SECRET": ""
@@ -1827,23 +1456,15 @@
"command": "eve",
"package": "eve",
"bin": "eve",
- "args": [
- "integration",
- "setup",
- "github"
- ]
+ "args": ["integration", "setup", "github"]
},
"requires": ">=0.33.0",
"docs": "/docs/channels/github",
"implementation": "native"
}
},
- "dependencies": [
- "@vercel/connect@>=0.6.0"
- ],
- "devDependencies": [
- "vercel@>=58.5.1"
- ]
+ "dependencies": ["@vercel/connect@>=0.6.0"],
+ "devDependencies": ["vercel@>=58.5.1"]
},
{
"name": "channel/linear-agent",
@@ -1856,23 +1477,15 @@
"command": "eve",
"package": "eve",
"bin": "eve",
- "args": [
- "integration",
- "setup",
- "linear"
- ]
+ "args": ["integration", "setup", "linear"]
},
"requires": ">=0.33.0",
"docs": "/docs/channels/linear",
"implementation": "native"
}
},
- "dependencies": [
- "@vercel/connect"
- ],
- "devDependencies": [
- "vercel@>=58.5.1"
- ]
+ "dependencies": ["@vercel/connect"],
+ "devDependencies": ["vercel@>=58.5.1"]
},
{
"name": "channel/web",
@@ -1885,11 +1498,7 @@
"command": "eve",
"package": "eve",
"bin": "eve",
- "args": [
- "integration",
- "setup",
- "web"
- ]
+ "args": ["integration", "setup", "web"]
},
"requires": ">=0.33.0",
"docs": "/docs/channels/eve",
@@ -2137,11 +1746,7 @@
"type": "registry:item",
"title": "Google Chat",
"description": "Google Chat spaces and DMs via the Chat SDK.",
- "dependencies": [
- "chat",
- "@chat-adapter/gchat",
- "@chat-adapter/state-memory"
- ],
+ "dependencies": ["chat", "@chat-adapter/gchat", "@chat-adapter/state-memory"],
"files": [
{
"path": "registry/channels/chat-sdk-gchat.ts",
@@ -2164,11 +1769,7 @@
"type": "registry:item",
"title": "WhatsApp",
"description": "Customer messaging through WhatsApp Business Cloud via the Chat SDK.",
- "dependencies": [
- "chat",
- "@chat-adapter/whatsapp",
- "@chat-adapter/state-memory"
- ],
+ "dependencies": ["chat", "@chat-adapter/whatsapp", "@chat-adapter/state-memory"],
"files": [
{
"path": "registry/channels/chat-sdk-whatsapp.ts",
@@ -2194,11 +1795,7 @@
"type": "registry:item",
"title": "X",
"description": "Public mentions and DMs on X via the Chat SDK.",
- "dependencies": [
- "chat",
- "@chat-adapter/x",
- "@chat-adapter/state-memory"
- ],
+ "dependencies": ["chat", "@chat-adapter/x", "@chat-adapter/state-memory"],
"files": [
{
"path": "registry/channels/chat-sdk-x.ts",
@@ -2222,11 +1819,7 @@
"type": "registry:item",
"title": "Messenger",
"description": "Facebook Messenger bots with templates, buttons, and reactions via the Chat SDK.",
- "dependencies": [
- "chat",
- "@chat-adapter/messenger",
- "@chat-adapter/state-memory"
- ],
+ "dependencies": ["chat", "@chat-adapter/messenger", "@chat-adapter/state-memory"],
"files": [
{
"path": "registry/channels/chat-sdk-messenger.ts",
@@ -2251,11 +1844,7 @@
"type": "registry:item",
"title": "Zernio",
"description": "Reach seven social and messaging platforms through one Zernio integration.",
- "dependencies": [
- "chat",
- "@zernio/chat-sdk-adapter",
- "@chat-adapter/state-memory"
- ],
+ "dependencies": ["chat", "@zernio/chat-sdk-adapter", "@chat-adapter/state-memory"],
"envVars": {
"ZERNIO_API_KEY": "",
"ZERNIO_WEBHOOK_SECRET": ""
@@ -2279,11 +1868,7 @@
"type": "registry:item",
"title": "Velt",
"description": "Add agents to anchored comments across documents, canvases, PDFs, and video.",
- "dependencies": [
- "chat",
- "@veltdev/chat-sdk-adapter",
- "@chat-adapter/state-memory"
- ],
+ "dependencies": ["chat", "@veltdev/chat-sdk-adapter", "@chat-adapter/state-memory"],
"envVars": {
"VELT_API_KEY": "",
"VELT_WEBHOOK_SECRET": ""
@@ -2307,11 +1892,7 @@
"type": "registry:item",
"title": "Sendblue",
"description": "Send and receive iMessage, SMS, and RCS through Sendblue.",
- "dependencies": [
- "chat",
- "chat-adapter-sendblue",
- "@chat-adapter/state-memory"
- ],
+ "dependencies": ["chat", "chat-adapter-sendblue", "@chat-adapter/state-memory"],
"envVars": {
"SENDBLUE_API_KEY": "",
"SENDBLUE_API_SECRET": "",
@@ -2336,11 +1917,7 @@
"type": "registry:item",
"title": "Novu",
"description": "Reach Slack, Teams, WhatsApp, Telegram, and email through Novu.",
- "dependencies": [
- "chat",
- "@novu/chat-sdk-adapter",
- "@chat-adapter/state-memory"
- ],
+ "dependencies": ["chat", "@novu/chat-sdk-adapter", "@chat-adapter/state-memory"],
"files": [
{
"path": "registry/channels/chat-sdk-novu.ts",
@@ -2364,11 +1941,7 @@
"type": "registry:item",
"title": "Liveblocks",
"description": "Bring your agent into Liveblocks comment threads, mentions, and reactions.",
- "dependencies": [
- "chat",
- "@liveblocks/chat-sdk-adapter",
- "@chat-adapter/state-memory"
- ],
+ "dependencies": ["chat", "@liveblocks/chat-sdk-adapter", "@chat-adapter/state-memory"],
"envVars": {
"LIVEBLOCKS_SECRET_KEY": "",
"LIVEBLOCKS_WEBHOOK_SECRET": ""
@@ -2392,23 +1965,15 @@
"type": "registry:item",
"title": "Linq",
"description": "Connect an eve agent to iMessage and SMS through Linq with guided Connect or portable setup.",
- "dependencies": [
- "@vercel/connect@>=0.9.0"
- ],
- "devDependencies": [
- "vercel@>=58.5.1"
- ],
+ "dependencies": ["@vercel/connect@>=0.9.0"],
+ "devDependencies": ["vercel@>=58.5.1"],
"meta": {
"eve": {
"setup": {
"command": "eve",
"package": "eve",
"bin": "eve",
- "args": [
- "integration",
- "setup",
- "linq"
- ]
+ "args": ["integration", "setup", "linq"]
},
"requires": ">=0.41.0",
"docs": "/docs/channels/linq",
@@ -2421,11 +1986,7 @@
"type": "registry:item",
"title": "Kapso",
"description": "Managed WhatsApp conversations, media, buttons, and history through Kapso.",
- "dependencies": [
- "chat",
- "@kapso/chat-adapter",
- "@chat-adapter/state-memory"
- ],
+ "dependencies": ["chat", "@kapso/chat-adapter", "@chat-adapter/state-memory"],
"envVars": {
"KAPSO_API_KEY": "",
"KAPSO_PHONE_NUMBER_ID": "",
@@ -2450,20 +2011,14 @@
"type": "registry:item",
"title": "Photon iMessage",
"description": "Connect an eve agent to iMessage through Photon with guided project and phone setup.",
- "dependencies": [
- "@vercel/connect@>=0.5.0"
- ],
+ "dependencies": ["@vercel/connect@>=0.5.0"],
"meta": {
"eve": {
"setup": {
"command": "eve",
"package": "eve",
"bin": "eve",
- "args": [
- "integration",
- "setup",
- "photon"
- ]
+ "args": ["integration", "setup", "photon"]
},
"requires": ">=0.33.0",
"docs": "/docs/channels/photon",
@@ -2476,11 +2031,7 @@
"type": "registry:item",
"title": "Dial",
"description": "Give your agent a phone number for SMS, MMS, iMessage, and voice transcripts.",
- "dependencies": [
- "chat",
- "@getdial/chat-sdk-adapter",
- "@chat-adapter/state-memory"
- ],
+ "dependencies": ["chat", "@getdial/chat-sdk-adapter", "@chat-adapter/state-memory"],
"envVars": {
"DIAL_API_KEY": "",
"DIAL_FROM_NUMBER_ID": "",
@@ -2505,11 +2056,7 @@
"type": "registry:item",
"title": "AgentPhone",
"description": "SMS, MMS, iMessage, and voice conversations through AgentPhone.",
- "dependencies": [
- "chat",
- "@agentphone/chat-sdk-adapter",
- "@chat-adapter/state-memory"
- ],
+ "dependencies": ["chat", "@agentphone/chat-sdk-adapter", "@chat-adapter/state-memory"],
"envVars": {
"AGENTPHONE_API_KEY": "",
"AGENTPHONE_AGENT_ID": "",
@@ -2534,11 +2081,7 @@
"type": "registry:item",
"title": "Lark / Feishu",
"description": "Lark and Feishu chats with native card streaming via the Chat SDK.",
- "dependencies": [
- "chat",
- "@larksuite/vercel-chat-adapter",
- "@chat-adapter/state-memory"
- ],
+ "dependencies": ["chat", "@larksuite/vercel-chat-adapter", "@chat-adapter/state-memory"],
"envVars": {
"LARK_APP_ID": "",
"LARK_APP_SECRET": ""
@@ -2562,11 +2105,7 @@
"type": "registry:item",
"title": "Beeper",
"description": "Matrix rooms and bridged messaging networks through Beeper.",
- "dependencies": [
- "chat",
- "@beeper/chat-adapter-matrix",
- "@chat-adapter/state-memory"
- ],
+ "dependencies": ["chat", "@beeper/chat-adapter-matrix", "@chat-adapter/state-memory"],
"files": [
{
"path": "registry/channels/chat-sdk-beeper.ts",
@@ -2590,11 +2129,7 @@
"type": "registry:item",
"title": "Resend",
"description": "Send and receive threaded email through Resend via the Chat SDK.",
- "dependencies": [
- "chat",
- "@resend/chat-sdk-adapter",
- "@chat-adapter/state-memory"
- ],
+ "dependencies": ["chat", "@resend/chat-sdk-adapter", "@chat-adapter/state-memory"],
"envVars": {
"RESEND_API_KEY": "",
"RESEND_WEBHOOK_SECRET": "",
@@ -2619,9 +2154,7 @@
"type": "registry:item",
"title": "Braintrust",
"description": "Trace eve agent sessions in Braintrust, including turns, steps, tool calls, and subagent interactions.",
- "dependencies": [
- "braintrust"
- ],
+ "dependencies": ["braintrust"],
"envVars": {
"BRAINTRUST_API_KEY": ""
},
@@ -2667,9 +2200,7 @@
"type": "registry:item",
"title": "Sentry",
"description": "Send agent traces to Sentry's OTLP endpoint for tracing and debugging.",
- "dependencies": [
- "@vercel/otel"
- ],
+ "dependencies": ["@vercel/otel"],
"envVars": {
"SENTRY_OTLP_TRACES_ENDPOINT": "",
"SENTRY_PUBLIC_KEY": ""
@@ -2687,9 +2218,7 @@
"type": "registry:item",
"title": "Datadog",
"description": "Export agent traces to Datadog APM alongside the rest of your stack.",
- "dependencies": [
- "@vercel/otel"
- ],
+ "dependencies": ["@vercel/otel"],
"envVars": {
"DATADOG_OTLP_TRACES_ENDPOINT": "",
"DD_API_KEY": ""
@@ -2707,9 +2236,7 @@
"type": "registry:item",
"title": "Honeycomb",
"description": "Send OpenTelemetry traces to Honeycomb and query every agent turn.",
- "dependencies": [
- "@vercel/otel"
- ],
+ "dependencies": ["@vercel/otel"],
"envVars": {
"HONEYCOMB_API_KEY": ""
},
@@ -2726,9 +2253,7 @@
"type": "registry:item",
"title": "Arize",
"description": "Export traces to Arize AX for LLM observability and evaluation.",
- "dependencies": [
- "@vercel/otel"
- ],
+ "dependencies": ["@vercel/otel"],
"envVars": {
"ARIZE_SPACE_ID": "",
"ARIZE_API_KEY": ""
@@ -2746,9 +2271,7 @@
"type": "registry:item",
"title": "Raindrop",
"description": "Send agent traces to Raindrop to detect and debug AI product issues.",
- "dependencies": [
- "@vercel/otel"
- ],
+ "dependencies": ["@vercel/otel"],
"envVars": {
"RAINDROP_WRITE_KEY": ""
},
@@ -2765,9 +2288,7 @@
"type": "registry:item",
"title": "Jaeger",
"description": "Trace your agent with a local or self-hosted Jaeger OTLP backend.",
- "dependencies": [
- "@vercel/otel"
- ],
+ "dependencies": ["@vercel/otel"],
"files": [
{
"path": "registry/instrumentation/jaeger.ts",
diff --git a/packages/eve/src/compiler/model-catalog.test.ts b/packages/eve/src/compiler/model-catalog.test.ts
index e13bb0fe8..19e1ff72c 100644
--- a/packages/eve/src/compiler/model-catalog.test.ts
+++ b/packages/eve/src/compiler/model-catalog.test.ts
@@ -49,6 +49,39 @@ const MOCK_MODELS: CatalogModel[] = [
},
],
},
+ {
+ slug: "arcee-ai/trinity-large-thinking",
+ providers: [
+ {
+ provider: "arcee-ai",
+ providerModelId: "trinity-large-thinking",
+ contextWindowTokens: 262_100,
+ maxOutputTokens: 80_000,
+ },
+ ],
+ },
+ {
+ slug: "moonshotai/kimi-k2",
+ providers: [
+ {
+ provider: "moonshotai",
+ providerModelId: "kimi-k2",
+ contextWindowTokens: 131_072,
+ maxOutputTokens: 131_072,
+ },
+ ],
+ },
+ {
+ slug: "moonshotai/kimi-k2-thinking",
+ providers: [
+ {
+ provider: "moonshotai",
+ providerModelId: "kimi-k2-thinking",
+ contextWindowTokens: 216_144,
+ maxOutputTokens: 216_144,
+ },
+ ],
+ },
{
slug: "example/zero-first-provider",
providers: [
@@ -190,6 +223,20 @@ describe("createCompiledRuntimeModelCatalogLoader", () => {
expect(limits).toEqual({ contextWindowTokens: 200_000, maxOutputTokens: 32_000 });
});
+ it("resolves a model whose canonical slug ends in -thinking", async () => {
+ mockCatalogFetch();
+ const loader = createCompiledRuntimeModelCatalogLoader("/tmp/test-app");
+ const limits = await loader.getModelLimits("arcee-ai/trinity-large-thinking");
+ expect(limits).toEqual({ contextWindowTokens: 262_100, maxOutputTokens: 80_000 });
+ });
+
+ it("prefers the exact -thinking slug over its base model", async () => {
+ mockCatalogFetch();
+ const loader = createCompiledRuntimeModelCatalogLoader("/tmp/test-app");
+ const limits = await loader.getModelLimits("moonshotai/kimi-k2-thinking");
+ expect(limits).toEqual({ contextWindowTokens: 216_144, maxOutputTokens: 216_144 });
+ });
+
it("resolves by provider and providerModelId", async () => {
mockCatalogFetch();
const loader = createCompiledRuntimeModelCatalogLoader("/tmp/test-app");
diff --git a/packages/eve/src/compiler/model-catalog.ts b/packages/eve/src/compiler/model-catalog.ts
index 24c655176..9fdbcee73 100644
--- a/packages/eve/src/compiler/model-catalog.ts
+++ b/packages/eve/src/compiler/model-catalog.ts
@@ -146,8 +146,9 @@ export function createCompiledRuntimeModelCatalogLoader(
return {
async getModelLimits(modelId) {
- const normalizedId = normalizeCatalogModelId(modelId);
- const builtInLimits = builtInCompiledRuntimeModelLimitsById.get(normalizedId);
+ const builtInLimits =
+ builtInCompiledRuntimeModelLimitsById.get(modelId) ??
+ builtInCompiledRuntimeModelLimitsById.get(normalizeCatalogModelId(modelId));
if (builtInLimits !== undefined) {
return builtInLimits;
}
@@ -155,11 +156,11 @@ export function createCompiledRuntimeModelCatalogLoader(
let resolved = await resolveModelsFromCacheOrFetch();
if (resolved === null) return null;
- let model = findCatalogModelBySlug(resolved.models, normalizedId);
+ let model = findCatalogModelBySlug(resolved.models, modelId);
if (model === undefined) {
resolved = await resolveModelsFromCacheOrFetch({ forceRefresh: true });
if (resolved === null) return null;
- model = findCatalogModelBySlug(resolved.models, normalizedId);
+ model = findCatalogModelBySlug(resolved.models, modelId);
}
if (model !== undefined) {
diff --git a/packages/eve/src/internal/model-catalog.test.ts b/packages/eve/src/internal/model-catalog.test.ts
new file mode 100644
index 000000000..8110c9494
--- /dev/null
+++ b/packages/eve/src/internal/model-catalog.test.ts
@@ -0,0 +1,83 @@
+import { describe, expect, it } from "vitest";
+
+import {
+ findCatalogModelBySlug,
+ normalizeCatalogModelId,
+ type CatalogModel,
+} from "#internal/model-catalog.js";
+
+const MODELS: CatalogModel[] = [
+ {
+ slug: "anthropic/claude-opus-4.7",
+ providers: [
+ { provider: "anthropic", providerModelId: "claude-opus-4-7", contextWindowTokens: 200_000 },
+ ],
+ },
+ {
+ slug: "arcee-ai/trinity-large-thinking",
+ providers: [
+ {
+ provider: "arcee-ai",
+ providerModelId: "trinity-large-thinking",
+ contextWindowTokens: 262_100,
+ },
+ ],
+ },
+ {
+ slug: "moonshotai/kimi-k2",
+ providers: [
+ { provider: "moonshotai", providerModelId: "kimi-k2", contextWindowTokens: 131_072 },
+ ],
+ },
+ {
+ slug: "moonshotai/kimi-k2-thinking",
+ providers: [
+ { provider: "moonshotai", providerModelId: "kimi-k2-thinking", contextWindowTokens: 216_144 },
+ ],
+ },
+];
+
+describe("normalizeCatalogModelId", () => {
+ it("strips a trailing -thinking suffix", () => {
+ expect(normalizeCatalogModelId("anthropic/claude-opus-4.7-thinking")).toBe(
+ "anthropic/claude-opus-4.7",
+ );
+ });
+
+ it("leaves other ids untouched", () => {
+ expect(normalizeCatalogModelId("openai/gpt-5.4")).toBe("openai/gpt-5.4");
+ expect(normalizeCatalogModelId("openai/gpt-5.1-thinking-fast")).toBe(
+ "openai/gpt-5.1-thinking-fast",
+ );
+ });
+});
+
+describe("findCatalogModelBySlug", () => {
+ it("matches an exact slug", () => {
+ expect(findCatalogModelBySlug(MODELS, "anthropic/claude-opus-4.7")?.slug).toBe(
+ "anthropic/claude-opus-4.7",
+ );
+ });
+
+ it("falls back to the base model for a gateway -thinking variant", () => {
+ expect(findCatalogModelBySlug(MODELS, "anthropic/claude-opus-4.7-thinking")?.slug).toBe(
+ "anthropic/claude-opus-4.7",
+ );
+ });
+
+ it("resolves a model whose canonical slug ends in -thinking", () => {
+ expect(findCatalogModelBySlug(MODELS, "arcee-ai/trinity-large-thinking")?.slug).toBe(
+ "arcee-ai/trinity-large-thinking",
+ );
+ });
+
+ it("prefers the exact -thinking slug over its base model", () => {
+ expect(findCatalogModelBySlug(MODELS, "moonshotai/kimi-k2-thinking")?.slug).toBe(
+ "moonshotai/kimi-k2-thinking",
+ );
+ });
+
+ it("returns undefined for an unknown slug", () => {
+ expect(findCatalogModelBySlug(MODELS, "unknown/model")).toBeUndefined();
+ });
+});
diff --git a/packages/eve/src/internal/model-catalog.ts b/packages/eve/src/internal/model-catalog.ts
index dd18bb12a..993871719 100644
--- a/packages/eve/src/internal/model-catalog.ts
+++ b/packages/eve/src/internal/model-catalog.ts
@@ -41,7 +41,15 @@ export function findCatalogModelBySlug(
models: readonly CatalogModel[],
slug: string,
): CatalogModel | undefined {
- return models.find((model) => model.slug === normalizeCatalogModelId(slug));
+ // Some models publish `-thinking` as their own canonical slug, so the
+ // verbatim id must win before the suffix is stripped.
+ const exact = models.find((model) => model.slug === slug);
+ if (exact !== undefined) {
+ return exact;
+ }
+
+ const normalized = normalizeCatalogModelId(slug);
+ return normalized === slug ? undefined : models.find((model) => model.slug === normalized);
}
export function findCatalogModelByProviderModelId(input: {
diff --git a/packages/eve/src/runtime/agent/resolve-model.ts b/packages/eve/src/runtime/agent/resolve-model.ts
index 148119e31..8cfbd5757 100644
--- a/packages/eve/src/runtime/agent/resolve-model.ts
+++ b/packages/eve/src/runtime/agent/resolve-model.ts
@@ -3,7 +3,6 @@ import type { CompiledModuleMap } from "#compiler/module-map.js";
import type { ContextAccessor } from "#context/key.js";
import { RuntimeModelMetadataCacheKey, type CachedModelMetadata } from "#context/keys.js";
import { normalizeAgentDefinition } from "#internal/authored-definition/core.js";
-import { normalizeCatalogModelId } from "#internal/model-catalog.js";
import { formatLanguageModelGatewayId } from "#internal/runtime-model.js";
import type {
RuntimeDynamicModelReference,
@@ -166,7 +165,7 @@ export async function resolveRuntimeModelSelection(input: {
if (typeof selectedModel === "string") {
const id = formatLanguageModelGatewayId(selectedModel);
const metadata = await resolveSelectionMetadata({
- cacheKey: `gateway:${normalizeCatalogModelId(id)}`,
+ cacheKey: `gateway:${id}`,
catalog,
contextWindowTokens: selection.modelContextWindowTokens,
load: (catalog) => catalog.getByGatewayId(id),
@@ -195,8 +194,8 @@ export async function resolveRuntimeModelSelection(input: {
const metadata = await resolveSelectionMetadata({
cacheKey:
topLevelProvider === "gateway"
- ? `gateway:${normalizeCatalogModelId(selectedModel.modelId)}`
- : `provider:${selectedModel.provider}:${normalizeCatalogModelId(selectedModel.modelId)}`,
+ ? `gateway:${selectedModel.modelId}`
+ : `provider:${selectedModel.provider}:${selectedModel.modelId}`,
catalog,
contextWindowTokens: selection.modelContextWindowTokens,
load: (catalog) =>