You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
createAI: Azure OpenAI v1 URLs (the @ai-sdk/azure default) are not routed #2629
@ai-sdk/azure builds v1 URLs by default (useDeploymentBasedUrls: false), e.g. https://<resource>.openai.azure.com/openai/v1/responses. createAI only maps the deployment form (/openai/deployments/<d>/...), so a default Azure model can't be routed:
constazure=createAzure({resourceName: "acme"});constai=createAI({binding: env.AI,id: "gw"});awaitgenerateText({model: ai(azure("gpt-5")), prompt });// TypeError: AI Gateway has no provider for acme.openai.azure.com. ... the supported providers are ..., azure-openai, ...
azureEndpoint in packages/agents/src/models/core/gateway-providers.ts returns undefined for anything but the deployment path, and the error then claims the host itself is unsupported while listing azure-openai. cloudflare/ai#604 maps /openai/v1/responses to the gateway's <resource>/openai/responses endpoint and leaves other v1 paths unmatched. At minimum the error should say to use useDeploymentBasedUrls: true.
Activity