0d3cb498a3
CI / Shell Format Check (push) Has been cancelled
CI / Check Ruby (3.4) (push) Has been cancelled
CI / CI Config (push) Has been cancelled
CI / Test on Node ${{ matrix.node }} and ${{ matrix.os }}${{ matrix.shard && format(' (shard {0}/3)', matrix.shard) || '' }} (push) Has been cancelled
CI / Build on Node ${{ matrix.node }} (push) Has been cancelled
CI / Style Check (push) Has been cancelled
CI / Generate Assets (push) Has been cancelled
CI / Check Python (3.14) (push) Has been cancelled
CI / Check Python (3.9) (push) Has been cancelled
CI / Build Docs (push) Has been cancelled
CI / Code Scan Action (push) Has been cancelled
CI / Site tests (push) Has been cancelled
CI / webui tests (push) Has been cancelled
CI / Run Integration Tests (push) Has been cancelled
CI / Run Smoke Tests (push) Has been cancelled
CI / Go Tests (push) Has been cancelled
CI / Share Test (push) Has been cancelled
CI / Redteam (Production API) (push) Has been cancelled
CI / Redteam (Staging API) (push) Has been cancelled
CI / GitHub Actions Lint (push) Has been cancelled
CI / Check Ruby (3.0) (push) Has been cancelled
release-please / release-please (push) Has been cancelled
release-please / build (push) Has been cancelled
release-please / publish-npm (push) Has been cancelled
release-please / publish-npm-backfill (push) Has been cancelled
release-please / docker (push) Has been cancelled
release-please / publish-code-scan-action (push) Has been cancelled
release-please / attest-code-scan-action (push) Has been cancelled
Deploy local.promptfoo.app / Deploy to Cloudflare Pages (push) Has been cancelled
Test and Publish Multi-arch Docker Image / test (push) Has been cancelled
Test and Publish Multi-arch Docker Image / build-docker-and-push-digests (map[digest-suffix:linux-amd64 platform:linux/amd64 runner:ubuntu-latest]) (push) Has been cancelled
Test and Publish Multi-arch Docker Image / build-docker-and-push-digests (map[digest-suffix:linux-arm64 platform:linux/arm64 runner:ubuntu-24.04-arm]) (push) Has been cancelled
Test and Publish Multi-arch Docker Image / merge-docker-digests (push) Has been cancelled
Test and Publish Multi-arch Docker Image / Attest Multi-arch Image (push) Has been cancelled
Validate Renovate Config / Validate Renovate Configuration (push) Has been cancelled
54 lines
2.0 KiB
YAML
54 lines
2.0 KiB
YAML
# yaml-language-server: $schema=https://promptfoo.dev/config-schema.json
|
|
description: 'OpenAI frontier models (GPT-5.5 / GPT-5.4) via AWS Bedrock'
|
|
|
|
# Frontier models are served through Bedrock's OpenAI-compatible Responses API and
|
|
# authenticate with an Amazon Bedrock API key. Export it before running (promptfoo reads it
|
|
# automatically — no apiKey field needed):
|
|
# export AWS_BEARER_TOKEN_BEDROCK="..."
|
|
|
|
prompts:
|
|
- |
|
|
Answer the following question concisely and accurately.
|
|
|
|
Question: {{question}}
|
|
|
|
providers:
|
|
# GPT-5.5 is available in us-east-2 (Ohio). promptfoo routes bedrock:openai.gpt-5.x to
|
|
# the OpenAI-compatible Responses API on the regional Bedrock mantle endpoint.
|
|
- id: bedrock:openai.gpt-5.5
|
|
label: GPT-5.5 (high reasoning)
|
|
config:
|
|
region: us-east-2
|
|
reasoning_effort: high
|
|
max_output_tokens: 2048
|
|
# GPT-5.4 is available in us-east-2 (Ohio) and us-west-2 (Oregon).
|
|
- id: bedrock:openai.gpt-5.4
|
|
label: GPT-5.4 (low reasoning)
|
|
config:
|
|
region: us-east-2
|
|
# Valid: none | low | medium | high | xhigh (minimal is NOT supported)
|
|
reasoning_effort: low
|
|
max_output_tokens: 1024
|
|
|
|
tests:
|
|
- vars:
|
|
question: What is the capital of France? Reply with only the city name.
|
|
assert:
|
|
- type: icontains
|
|
value: Paris
|
|
- vars:
|
|
question: 'If a train travels 120 miles in 2 hours, what is its average speed in mph? Reply with just the number and unit.'
|
|
assert:
|
|
- type: contains
|
|
value: '60'
|
|
- type: icontains-any
|
|
value: ['mph', 'miles per hour']
|
|
- vars:
|
|
question: 'Explain the concept of machine learning in two sentences.'
|
|
assert:
|
|
# Deterministic assertions keep this example runnable with only a Bedrock API key.
|
|
# (A model-graded assertion like `llm-rubric` would require a separate grader provider
|
|
# with its own credentials — see https://promptfoo.dev/docs/configuration/expected-outputs/model-graded/)
|
|
- type: icontains-any
|
|
value: ['data', 'model', 'train', 'learn', 'pattern']
|