Replies: 2 comments 3 replies
-
Image::fromUrl sends the url to the provider rather than base64 - it's only supported by some providers and will throw an exception for the others. AFAIK, there's even less vendors that support sending a URL for documents - just Gemini that I know of. I was planning on adding a fromStorage method though, taking a path and disk. Would that be better for you? |
Beta Was this translation helpful? Give feedback.
1 reply
-
Hey, this has been added for Mistral: v0.54.0 But the implementation differs from what you suggest. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I notice there is Image::fromUrl() but there is no Document::fromUrl()
is there a special reason for not supporting fromUrl() for Document? It will be kind of nice if i can pass in a s3 temporary file link instead of having to download the file to my server and then use Document::fromPath()
I tried Document::fromPath('url-to-pdf-file') and got error
Beta Was this translation helpful? Give feedback.
All reactions