Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix exception occurring when Azure OpenAI service is throttling requests #876

Merged
merged 2 commits into from
Nov 1, 2024

Conversation

dluc
Copy link
Collaborator

@dluc dluc commented Nov 1, 2024

Motivation and Context (Why the change? What's the scenario?)

When retrying requests after throttling, the Azure OpenAI SDK is sending malformed requests, with multiple Authorization headers, which are rejected by the Azure OpenAI service with a 401 (Unauthorized) error code, leading to an exception in the SDK.

See

High level description (Approach, Design)

Inject a policy to fix malformed HTTP headers.

Functional test included, to verify the fix.

@dluc dluc merged commit b67dfe7 into microsoft:main Nov 1, 2024
6 checks passed
@dluc dluc deleted the fix46109 branch November 1, 2024 19:31
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.

1 participant