Skip to content

Azure Responses API base_url changed to not include /deployments/:model #594

Open
@weilandia

Description

@weilandia

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:

  1. Initialize a typical azure client with a base url that includes /deployment/:model
  2. Confirm the chat api works
  3. Try the respones api
  4. See 404 error

Expected behavior
Ideally we could use the same client for both the chat and responses apis.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions