examples/provider-github-models/README.md
You can run this example with:
npx promptfoo@latest init --example provider-github-models
cd provider-github-models
Set your GITHUB_TOKEN environment variable. You can create a Personal Access Token at https://github.com/settings/tokens.
export GITHUB_TOKEN=ghp_your_token_here
This example tests the GitHub Models API integration:
llm-rubric assertions via the defaultTest.options.provider.text configurationpromptfoo eval
promptfoo view
GitHub Models supports various models including:
OpenAI Models:
github:openai/gpt-4o, github:openai/gpt-4o-minigithub:openai/gpt-5, github:openai/gpt-5-mini, github:openai/gpt-5-nanogithub:openai/o4-mini, github:openai/o3-miniOther Providers:
github:meta/llama-4-scout-17b-16e-instructgithub:deepseek/DeepSeek-V3-0324github:mistral-ai/mistral-largeSee the GitHub Models marketplace for the full list.