Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel
Michael 599111ce42
chore(providers): update google provider with better support for latest gemini models (#2838)
7 months ago
..
599111ce42
chore(providers): update google provider with better support for latest gemini models (#2838)
7 months ago
599111ce42
chore(providers): update google provider with better support for latest gemini models (#2838)
7 months ago

README.md

You have to be logged in to leave a comment. Sign In

Google AI Studio (Gemini) Example

This example demonstrates using Google's Gemini models with promptfoo to evaluate math puzzle solving capabilities.

Prerequisites

  • promptfoo CLI installed (npm install -g promptfoo or brew install promptfoo)
  • Google AI Studio API key set as GOOGLE_API_KEY

Available Models

The example tests across multiple Gemini models:

  • Gemini 2.0 Flash
  • Gemini 2.0 Flash Thinking
  • Gemini 1.5 Flash
  • Gemini 1.5 Pro - Standard model for complex reasoning, used with both structured JSON output and function calling capabilities

Running the Eval

  1. Get a local copy of the configuration:
promptfoo init --example google-aistudio-gemini
  1. Run the example:
promptfoo eval

Afterwards, you can view the results by running promptfoo view

Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...