Skip to content

feat(provider/perplexity): support image input #7141

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 1 commit into from
Jul 9, 2025

Conversation

nvti
Copy link
Contributor

@nvti nvti commented Jul 8, 2025

Background

While Perplexity's core API (excluding sonar-deep-research) allows image input as documented here: https://docs.perplexity.ai/guides/image-guide, this functionality is not yet available in the @ai-sdk/perplexity package.

Summary

I change function convertToPerplexityMessages to support image as input. I also create new type for message content: PerplexityMessageContent

Verification

Tasks

  • 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)
  • Formatting issues have been fixed (run pnpm prettier-fix in the project root)

Future Work

Related Issues

Fixed #6250
Related PR #6416

@nvti nvti force-pushed the perplexity_support_input_image branch from c88f504 to 2103dc8 Compare July 9, 2025 03:13
@lgrammel lgrammel merged commit 2a9732b into vercel:main Jul 9, 2025
7 of 9 checks passed
lgrammel pushed a commit that referenced this pull request Aug 4, 2025
## Background

`@ai-sdk/perplexity` now supports image input, a feature added in PR
#7141.

## Summary

I've updated the Model Capabilities table to reflect that the
`@ai-sdk/perplexity` package now supports image input.
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.

Add Support for Image Inputs with Perplexity Provider
2 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy