-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Closed
Description
Description
Repro (run a couple times, it's flakey):
import { createAzure } from "@ai-sdk/azure";
export const azureAiReasoning = createAzure({
resourceName: "<>",
apiKey: <>,
apiVersion: "preview",
});
const res = await generateText({
model: providers.azureAiReasoning.responses("gpt-5.1-codex"),
temperature: 1,
tools: {
web_search_preview: azureAiReasoning.tools.webSearchPreview({}),
},
providerOptions: {
openai: {
reasoningEffort: "high",
maxCompletionTokens: 32_000,
},
},
messages: [
{
role: "user",
content:
"Make a static website for today's stock news, use web search and make sure to use open_page",
},
],
});
Triggers this error:
ZodError: [
{
"expected": "string",
"code": "invalid_type",
"path": [
"output",
9,
"action",
"url"
],
"message": "Invalid input: expected string, received undefined"
}
]
I believe this may be related to #9308
AI SDK Version
- "ai": "^5.0.100",
- "@ai-sdk/azure": "^2.0.75",
- "@ai-sdk/openai": "^2.0.73",
Code of Conduct
- I agree to follow this project's Code of Conduct