Skip to content

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
@jeffhandley jeffhandley added the area-ai Microsoft.Extensions.AI libraries label Mar 7, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-ai Microsoft.Extensions.AI libraries

Projects

None yet

Development

Successfully merging this pull request may close these issues.

OpenAIChatClient streaming tool calls may be broken

5 participants