JidoAi.Examples.Gemini (Jido AI v0.5.2)

View Source

Example demonstrating how to use Google's Gemini models with Jido AI.

This example shows how to use the Model.from/1 function to create a Gemini model and use it with the OpenaiEx action to generate text.

Usage

$ mix run examples/gemini.ex

Make sure to set your Google API key as an environment variable:

$ GOOGLE_API_KEY=your_api_key mix run examples/gemini.ex

Or add it to your .env file.

Summary

Functions

run()