Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

promptfooconfig.yaml 816 B

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
  1. # yaml-language-server: $schema=https://promptfoo.dev/config-schema.json
  2. description: 'Getting started'
  3. # Optionally set API keys here instead of exporting environment variables.
  4. # Never commit real keys to source control.
  5. # env:
  6. # OPENAI_API_KEY: sk-...
  7. prompts:
  8. - 'Convert this English to {{language}}: {{input}}'
  9. - 'Translate to {{language}}: {{input}}'
  10. providers:
  11. - openai:gpt-4.1
  12. - openai:o4-mini
  13. # Or setup models from other providers
  14. # - anthropic:messages:claude-4-sonnet-20250514
  15. # - vertex:gemini-2.5-pro
  16. tests:
  17. - vars:
  18. language: French
  19. input: Hello world
  20. assert:
  21. - type: contains
  22. value: 'Bonjour le monde'
  23. - vars:
  24. language: Spanish
  25. input: Where is the library?
  26. assert:
  27. - type: icontains
  28. value: 'Dónde está la biblioteca'
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...