Open asleepynerd opened 5 months ago
@joshiewtf i believe vertex pdf needs to be on gs://
this is the comparable vertex example:
await chat.sendMessageStream([
{
text: 'Where is this candidate based?'
},
{
fileData: {
mimeType: 'application/pdf',
fileUri: 'gs://resume.pdf'
}
}
]);
do you have http pdf files working with vertex ai today? would help to see a working code example @joshiewtf
Docs don't say anything here about it:
https://cloud.google.com/vertex-ai/docs/reference/rest/v1/projects.locations.tuningJobs#Content
@krrishdholakia
looking here - https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/inference#non-stream-multi-modality
it says the file uri is on google cloud storage
if you can share a working call with pdf, that would help @letmefocus
What happened?
sending a request with this:
Gemini 1.5 / gemini 1.5 flash
Using the /v1/chat/completions endpoint
Relevant log output
Twitter / LinkedIn details
twitter: @ellsiecodes - https://x.com/ellsiecodes