https://www.boundaryml.com logo
๐ŸŸก Guidance on setting up client for Azure GPT-5 m...
# questions
i
Hey Baml team, would love some guidance on how I should be setting up my client to use the responses API with an Azure model deployment of GPT 5. Would also be great to know how I can change the reasoning effort on the client as well
v
Can you share docs on how azure exposes the responses api?
Can share docs accordingly
v
Oh fantastic. You can just use the openai-responses provider and swap out the base url
It should โ€œjust workโ€
For reasoning you just pass in parameters into options defined for that client
I can share an example in a bit
To swap out the base_url just add base_url to the options in your client definition
(On mobile or I would just paste a snippet)
i
Awesome this is helpful thank you! Just a quick follow up: Normally when using just azure provider, the url for the deployment from the Azure AI Foundary is structured as below:
https://YOUR_RESOURCE_NAME.REGION.models.ai.azure.com/openai/deployments/YOUR_DEPLOYMENT_ID/chat/completions
I am assuming that the /chat/completions here would get swapped out for responses, is there any other changes that I would need to make here?
v
You wouldnโ€™t put the responses thing in there. Just the v1 url. On the docs link you shared, thereโ€™s a url all that they show that goes into the openai sdk. We need the same base_url
i
Makes sense, thank you