Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel
Will 2b5d4878b8
chore: Increase max outuput tokens for `google:gemini-2.5-pro-exp-03-25` to 2048 in Gemini example (#3753)
4 months ago
..
1608b2d3c3
chore(providers): Add support and docs for gemini 2.5 pro to Google Chat Provider (#3485)
5 months ago
2b5d4878b8
chore: Increase max outuput tokens for `google:gemini-2.5-pro-exp-03-25` to 2048 in Gemini example (#3753)
4 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.5 Pro Experimental
  • 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...