Skip to content

LLM Providers

LLM provider targets call language model APIs directly. These are used both as evaluation targets and as grader targets for scoring.

targets:
- name: openai-target
provider: openai
api_key: ${{ OPENAI_API_KEY }}
model: gpt-4o
FieldRequiredDescription
api_keyYesOpenAI API key
modelYesModel identifier
base_urlNoCustom base URL for OpenAI-compatible endpoints
api_formatNoAPI format: chat (default) or responses

Controls which OpenAI API endpoint is used:

ValueEndpointWhen to use
chat (default)/chat/completionsAll OpenAI-compatible endpoints (GitHub Models, local proxies, etc.)
responses/responsesOnly api.openai.com — opt in to the Responses API

Most users should leave this unset. The default chat format is universally supported. Use responses only when you need Responses API features on api.openai.com directly.

# OpenAI-compatible endpoint (default chat format works)
targets:
- name: github-models
provider: openai
api_format: chat
base_url: https://models.github.ai/inference/v1
api_key: ${{ GH_MODELS_TOKEN }}
model: ${{ GH_MODELS_MODEL }}
# Opt in to Responses API for api.openai.com
- name: openai-responses
provider: openai
api_format: responses
api_key: ${{ OPENAI_API_KEY }}
model: gpt-4o
targets:
- name: azure-base
provider: azure
endpoint: ${{ AZURE_OPENAI_ENDPOINT }}
api_key: ${{ AZURE_OPENAI_API_KEY }}
model: ${{ AZURE_DEPLOYMENT_NAME }}
FieldRequiredDescription
endpointYesAzure OpenAI endpoint URL
api_keyYesAPI key
modelYesDeployment name
targets:
- name: claude_target
provider: anthropic
api_key: ${{ ANTHROPIC_API_KEY }}
model: claude-sonnet-4-20250514
FieldRequiredDescription
api_keyYesAnthropic API key
modelYesModel identifier
targets:
- name: gemini_target
provider: gemini
api_key: ${{ GEMINI_API_KEY }}
model: gemini-2.0-flash
FieldRequiredDescription
api_keyYesGoogle AI API key
modelYesModel identifier