Skip to content

chore: use presentImages in single image generation example that wasn't using it yet#12498

Merged
gr2m merged 1 commit intomainfrom
fa-examples-should-use-presentimages
Feb 12, 2026
Merged

chore: use presentImages in single image generation example that wasn't using it yet#12498
gr2m merged 1 commit intomainfrom
fa-examples-should-use-presentimages

Conversation

@felixarntz
Copy link
Collaborator

Background

The registry/generate-image.ts example was the only image-generating example in ai-functions that manually wrote images with fs.writeFileSync instead of using the shared presentImages helper.

Summary

Replaced the manual fs.writeFileSync + console.log with a call to presentImages([image]), matching other image generation examples.

Manual Verification

N/A

Checklist

  • Tests have been added / updated (for bug fixes / features)
  • Documentation has been added / updated (for bug fixes / features)
  • A patch changeset for relevant packages has been added (for bug fixes / features - run pnpm changeset in the project root)
  • I have reviewed this pull request (self-review)

Future Work

N/A

Related Issues

N/A

@vercel-ai-sdk vercel-ai-sdk bot added the ai/core core functions like generateText, streamText, etc. Provider utils, and provider spec. label Feb 12, 2026
@gr2m gr2m merged commit fdf784f into main Feb 12, 2026
25 checks passed
@gr2m gr2m deleted the fa-examples-should-use-presentimages branch February 12, 2026 17:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ai/core core functions like generateText, streamText, etc. Provider utils, and provider spec.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants