Open kadzaki opened 4 months ago
In file https://github.com/firebase/genkit/blob/main/docs/models.md const result = await generate({ model: gemini15Flash, prompt: [ { text: 'describe the following image:' }, { data: { url: fs.readFileSync(__dirname + '/image.jpeg', { encoding: 'base64', flag: 'r', }), contentType: 'image/jpeg', }, }, ], });
The data param does not exists, media is the correct param name
I would like to work on this as my first contribution.
Thanks for reporting! We'd be happy to review your PR once it's submitted.
In file https://github.com/firebase/genkit/blob/main/docs/models.md const result = await generate({ model: gemini15Flash, prompt: [ { text: 'describe the following image:' }, { data: { url: fs.readFileSync(__dirname + '/image.jpeg', { encoding: 'base64', flag: 'r', }), contentType: 'image/jpeg', }, }, ], });
The data param does not exists, media is the correct param name
I would like to work on this as my first contribution.