Skip to content
Source
Docs
Explore
Skills
MCP servers
For agents
Search or jump to…
Sign in
Sign up
TanStack
/
ai
Pull requests
TanStack
ai
Public
Synced with GitHub
Popular #1
Fork
0
0
0
0
1
2
3
4
5
6
7
8
9
Code
Architecture
Issues
Pull requests
Community
Assets
CI
Agents
Settings
fix(scripts): retain web_fetch in OpenRouter tool-capability codegen
#657
Send to my agent
Merged
AlemTuzlak
merged 1 commit into
main
from
refs/pull/657/head
·
merged by
AlemTuzlak
6 months ago
View on GitHub
Conversation
5
Commits
1
Files changed
1
Impact
Showing
1 changed file
with
5 additions
and
5 deletions
.
x
0 of 1 viewed, 1 left
Files
Hide whitespace
Unified
Split
5 additions and 5 deletions
+5
-5
scripts/convert-openrouter-models.ts
Modified
Diff
Before/After
Viewed
scripts/convert-openrouter-models.ts
View file
Expand up
Show all 64 lines
@@ -65,16 +65,16 @@
65
65
}
66
66
67
67
/**
68
-
* OpenRouter's web_search plugin works across all chat models via the gateway,
69
-
* so the tool-capability map is structural and identical for every chat model.
70
-
* Emitted as a mapped type to stay in sync with OPENROUTER_CHAT_MODELS without
71
-
* touching each model constant.
68
+
* OpenRouter's web_search and web_fetch plugins work across all chat models via
69
+
* the gateway, so the tool-capability map is structural and identical for every
70
+
* chat model. Emitted as a mapped type to stay in sync with
71
+
* OPENROUTER_CHAT_MODELS without touching each model constant.
72
72
*/
73
73
function
generateChatToolCapabilitiesType
():
string
{
74
74
if
(chatModels.
size
===
0
) {
75
75
return
''
76
76
}
77
-
return
`export type OpenRouterChatModelToolCapabilitiesByName = {\n [K in (typeof OPENROUTER_CHAT_MODELS)[number]]: readonly ['web_search']\n}`
77
+
return
`export type OpenRouterChatModelToolCapabilitiesByName = {\n [K in (typeof OPENROUTER_CHAT_MODELS)[number]]: readonly ['web_search', 'web_fetch']\n}`
78
78
}
79
79
80
80
function
generateImageModelsArray
():
string
{
Expand down
Show all lines
Home
Search
Explore
Menu