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 azure streaming #7646

Merged
merged 3 commits into from
Sep 12, 2023
Merged

Fix azure streaming #7646

merged 3 commits into from
Sep 12, 2023

Conversation

logan-markewich
Copy link
Collaborator

Description

In newer versions of the azure api, the first response when streaming has no content, only filtering/safety information. This PR fixes the index error that occurs because of this.

Furthermore, I removed the default API version, as it is inconsistent with our docs and also breaks users who are specifying the API the old way.

Fixes #7640

Type of Change

  • Bug fix (non-breaking change which fixes an issue)

How Has This Been Tested?

  • I stared at the code and made sure it makes sense

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.

[Bug]: AzureOpenAI.stream_chat causes IndexError
2 participants