Skip to content

fix: preserve azure endpoint path prefixes#680

Open
redactdeveloper wants to merge 1 commit into
openai:mainfrom
redactdeveloper:fix/azure-baseurl-path-prefix
Open

fix: preserve azure endpoint path prefixes#680
redactdeveloper wants to merge 1 commit into
openai:mainfrom
redactdeveloper:fix/azure-baseurl-path-prefix

Conversation

@redactdeveloper

Copy link
Copy Markdown

Summary

  • Preserve path prefixes from Azure endpoints such as https://host/apim-suffix.
  • Run Azure deployment route rewriting against the request path without the endpoint prefix, then restore the prefix on the final URL.
  • Add a regression test covering a prefixed Azure endpoint and the final chat completions URL.

Fixes #239

Test plan

  • go test ./azure -count=1

@redactdeveloper
redactdeveloper requested a review from a team as a code owner June 3, 2026 01:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

A difference between the OpenAI Go SDK and Python SDK.

1 participant