Files
wehub-resource-sync 0d3cb498a3
Deploy local.promptfoo.app / Deploy to Cloudflare Pages (push) Waiting to run
Test and Publish Multi-arch Docker Image / test (push) Waiting to run
Test and Publish Multi-arch Docker Image / build-docker-and-push-digests (map[digest-suffix:linux-amd64 platform:linux/amd64 runner:ubuntu-latest]) (push) Blocked by required conditions
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) Blocked by required conditions
Test and Publish Multi-arch Docker Image / merge-docker-digests (push) Blocked by required conditions
Test and Publish Multi-arch Docker Image / Attest Multi-arch Image (push) Blocked by required conditions
Validate Renovate Config / Validate Renovate Configuration (push) Waiting to run
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
chore: import upstream snapshot with attribution
2026-07-13 13:24:08 +08:00

100 lines
2.5 KiB
YAML

# yaml-language-server: $schema=https://promptfoo.dev/config-schema.json
description: Dynamic prompt generation using JavaScript functions
prompts:
- 'You are an angry pirate. Be concise and stay in character. Tell me about {{topic}}'
- id: 'You are an angry pirate. Be concise and stay in character. Tell me about {{topic}}'
label: text
- id: file://prompt.txt
label: prompt_txt
- file://prompt.txt
- id: '*.txt'
label: prompt_glob
- '*.txt'
- 'file://*.txt'
- id: file://prompt.yaml
label: prompt_yaml
- file://prompt.yaml
- id: file://subfolder/prompt.json
label: prompt_json
- file://subfolder/prompt.json
- file://subfolder/*.json
- id: file://prompt.md
label: markdown prompt
- id: file://prompt.j2
label: jinja2 template
- id: file://prompt.jsonl
label: prompt_jsonl
- file://prompt.jsonl
- id: file://prompt_chat.js
label: prompt_chat (js)
- file://prompt_chat.js
- id: file://prompt_chat.ts
label: prompt_chat (ts)
- file://prompt_chat.ts
- id: file://prompt_string.js
label: prompt_string
- file://prompt_string.js
- id: file://prompt_multiple.js:prompt2
label: prompt_multiple with prompt2
- file://prompt_multiple.js:prompt2
- id: file://prompt_esm.mjs
label: prompt_esm
- file://prompt_esm.mjs
- id: file://prompt_python.py
label: prompt_python
- file://prompt_python.py
- id: file://prompt_python.py:prompt1
label: prompt_python with prompt1
- file://prompt_python.py:prompt1
- id: file://prompt_python.py:Prompt.prompt
label: prompt_python_class
- file://prompt_python.py:Prompt.prompt_with_cot
- id: file://prompt_config.js:promptWithConfig
label: JS Prompt with Dynamic Config
- id: file://prompt_config.py:prompt_with_config
label: Python Prompt with Dynamic Config
- id: file://prompts.csv
label: CSV prompts
providers:
# Use the echo provider only to see rendered prompts without LLM calls
- echo
# - id: anthropic:claude-sonnet-4-6
# label: Claude Sonnet 4.6
# - id: openai:gpt-4.1-mini
# label: GPT-4o Mini
# config below is overridden by prompt functions with config
# config:
# temperature: 0.0 # Default temperature, will be overridden by prompt function
# max_tokens: 50 # Default max_tokens, will be overridden by prompt function
tests:
- vars:
topic: the weather
- vars:
topic: bob dylan
- vars:
topic: the Roman Empire
- vars:
topic: file://another_topic.txt