Open
Description
Describe the bug
The Azure Responses API base_url changed to not include /deployments/:model
and instead is just https://YOUR-RESOURCE-NAME.openai.azure.com/openai/responses?api-version=
.
You may not want to support this and instead just rely on folks passing in the correct base uri, but currently this broke our compatibility of using the same client for both the responses and chat api. We could dynamically remove that bart of the base uri if it is an Azure call AND a responses API call.
To Reproduce
Steps to reproduce the behavior:
- Initialize a typical azure client with a base url that includes
/deployment/:model
- Confirm the chat api works
- Try the respones api
- See 404 error
Expected behavior
Ideally we could use the same client for both the chat and responses apis.
Metadata
Metadata
Assignees
Labels
No labels