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

Work around fixed bug in System.Memory.Data #5569

Merged
merged 2 commits into from
Oct 24, 2024

Conversation

stephentoub
Copy link
Member

@stephentoub stephentoub commented Oct 24, 2024

BinaryData had a bug in its ToString that would throw an exception if _bytes was empty. That was fixed several years ago, but Azure SDK libraries are still referencing older versions of System.Memory.Data that don't have the fix. Thus if nothing else pulls in a newer System.Memory.Data, this can fail.

Closes #5567

Microsoft Reviewers: Open in CodeFlow

BinaryData had a bug in its ToString that would throw an exception if _bytes was empty. That was fixed several years ago, but Azure SDK libraries are still referencing older versions of System.Memory.Data that don't have the fix.
@stephentoub stephentoub enabled auto-merge (squash) October 24, 2024 19:40
@stephentoub stephentoub merged commit 4bff11a into dotnet:main Oct 24, 2024
6 checks passed
@stephentoub stephentoub deleted the workaroundbinarydata branch October 25, 2024 12:13
@eerhardt
Copy link
Member

Thus if nothing else pulls in a newer System.Memory.Data, this can fail.

Would another option to fix this be to reference the 8.0.1 version of System.Memory.Data from Microsoft.Extensions.AI.OpenAI?

@stephentoub
Copy link
Member Author

Thus if nothing else pulls in a newer System.Memory.Data, this can fail.

Would another option to fix this be to reference the 8.0.1 version of System.Memory.Data from Microsoft.Extensions.AI.OpenAI?

Yes. I think we want the changes in this PR, anyway, but #5576 adds the explicit dependency.

@github-actions github-actions bot locked and limited conversation to collaborators Nov 25, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

OpenAIChatClient streaming tool calls may be broken
4 participants