Skip to content

docs(changeset): #5660 is not a breaking change #6765

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

Merged
merged 2 commits into from
Jun 17, 2025

Conversation

gr2m
Copy link
Collaborator

@gr2m gr2m commented Jun 16, 2025

Existing code continues to work.

Example

Before

import { convertUint8ArrayToBase64 } from '@ai-sdk/provider-utils';

// Had to manually convert binary data to base64
const fileData = new Uint8Array([0, 1, 2, 3]);
const filePart = {
  type: 'file',
  mediaType: 'application/pdf',
  data: convertUint8ArrayToBase64(fileData), // Required conversion
};

After

// Can use binary data directly
const fileData = new Uint8Array([0, 1, 2, 3]);
const filePart = {
  type: 'file', 
  mediaType: 'application/pdf',
  data: fileData, // Direct Uint8Array support
};

@lgrammel lgrammel merged commit d5b173f into v5 Jun 17, 2025
8 checks passed
@lgrammel lgrammel deleted the v5-gr2m/5660-is-not-a-breaking-change branch June 17, 2025 05:21
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.

2 participants