firebase / genkit

An open source framework for building AI-powered apps with familiar code-centric patterns. Genkit makes it easy to develop, integrate, and test AI features with observability and evaluations. Genkit works with various models and platforms.
Apache License 2.0
812 stars 122 forks source link

[Docs] Incorrect param name in models doc #738

Open kadzaki opened 4 months ago

kadzaki commented 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.

MichaelDoyle commented 3 months ago

Thanks for reporting! We'd be happy to review your PR once it's submitted.