We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 04a1f0d commit 06b3e8cCopy full SHA for 06b3e8c
generative-ai/snippets/gemini-pdf.js
@@ -26,9 +26,9 @@ async function analyze_pdf(projectId = 'PROJECT_ID') {
26
});
27
28
const filePart = {
29
- file_data: {
30
- file_uri: 'gs://cloud-samples-data/generative-ai/pdf/2403.05530.pdf',
31
- mime_type: 'application/pdf',
+ fileData: {
+ fileUri: 'gs://cloud-samples-data/generative-ai/pdf/2403.05530.pdf',
+ mimeType: 'application/pdf',
32
},
33
};
34
const textPart = {
0 commit comments