sluder
(Hummus)
December 15, 2025, 2:58pm
1
Hello all!
I am receiving warnings for unsupported tools with openai/gpt-5 through the AI gateway. Any ideas? Happens with other OpenAI models as well.
I have also played around with other set ups, however the response expects a tool submission for image generation. Im expecting the files to be generated within the response according to the docs, it that the right expectation?
const vercelGateway = createGateway({
apiKey,
});
generateText({
model: vercelGateway(‘openai/gpt-5’),
prompt: prompt,
providerOptions: {
gateway: {
user: this.runtime.agent.uuid,
tags: [providerModel, ‘ai’],
only: [provider],
},
},
tools: {
web_search: openai.tools.webSearch({
searchContextSize: ‘medium’,
}),
code_interpreter: openai.tools.codeInterpreter(),
image_generation: openai.tools.imageGeneration(),
},
});
amyegan
(Amy Egan)
December 15, 2025, 9:30pm
5
One of the OpenAI-specific features you’re using might not be fully compatible when proxied through the AI Gateway. There’s a related feature request recently opened in the repo:
opened 09:23PM - 01 Dec 25 UTC
feature
ai/provider
support
provider/anthropic
### Description
Providers frequently introduce new built-in tools. Recently, An… thropic added two new tools — tool_search_tool_regex and tool_search_tool_bm25. However, the latest version of @anthropic-ai/sdk does not yet support them, which forces us to wait for SDK updates before we can use new tools.
I’m proposing support for provider-defined tools so that upcoming tools can be used immediately without being blocked by SDK updates. For example:
```
{
tools: {
tool_search_tool_regex: tool({
inputSchema: z.any(),
args: {},
type: "provider-defined",
id: "anthropic.tool_search_tool_regex",
name: "tool_search_tool_regex",
}),
tool_search_tool_bm25: tool({
inputSchema: z.any(),
args: {},
type: "provider-defined",
id: "anthropic.tool_search_tool_bm25",
name: "tool_search_tool_bm25",
}),
}
}
```
If a provider doesn’t actually support a given tool, the SDK should allow the developer to handle that error rather than throwing unsupported-tool.
@lgrammel @nicoalbanese
### AI SDK Version
_No response_
### Code of Conduct
- [x] I agree to follow this project's Code of Conduct