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

feat(openai): add support for file inputs #290

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Gertiozuni
Copy link

Description

This PR adds support for file inputs/documents:

https://platform.openai.com/docs/guides/pdf-files?api-mode=chat

@ChrisB-TL
Copy link
Contributor

Thanks for this!

I am not sure about the support for file IDs. They are OpenAI specific, and we don't offer a way to upload documents via Prism, so it may throw up a lot of issues/questions.

If we do leave them in, could we move to a OpenAI specific OpenAIFile value object - to be added to a message in the same way as Document - which should avoid confusion a little?

Copy link

kinsta bot commented Apr 2, 2025

Preview deployments for prism ⚡️

Status Branch preview Commit preview
❌ Failed to deploy N/A N/A

Commit: 04a0aff955203c9bfba5f6b15db4e1a242355f05

Deployment ID: fb34d344-5f3b-409f-85e3-056bd7c42845

Static site name: prism-97nz9

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