Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Azure Realtime API URL is generated wrong based on a endpoint #2120

Copy link
Copy link
Closed
@eavanvalkenburg

Description

@eavanvalkenburg
Issue body actions

Confirm this is an issue with the Python library and not an underlying OpenAI API

  • This is an issue with the Python library

Describe the bug

The AzureOpenAI client generates the wrong URL for the realtime websocket connection when creating the client with a azure_endpoint and azure_deployment:

  • it generates: wss://<azure_endpoint without https://>/openai/deployments/<azure_deployment)/realtime?model=<model_param>&api-version=2024-10-01-preview&deployment=<model_param>
  • it should generate: wss://<azure_endpoint without https://>/openai/realtime?model=<model_param>&api-version=2024-10-01-preview&deployment=<azure_deployment>

When not passing azure_deployment to the client it does work!

To Reproduce

  1. Create a AzureOpenAI client with endpoint and deployment
  2. Connect to realtime api

Code snippets

OS

MacOS

Python version

Python 3.13.1

Library version

openai v1.61.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.