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 619 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
  1. # yaml-language-server: $schema=https://promptfoo.dev/config-schema.json
  2. description: 'HTTP provider test'
  3. prompts:
  4. - 'Write a tweet about {{topic}}'
  5. - 'Write a very concise, funny tweet about {{topic}}'
  6. providers:
  7. - id: https://webhook.site/3d47d2dd-d450-4869-b80d-41862e577e45
  8. config:
  9. method: 'POST'
  10. headers:
  11. 'Content-Type': 'application/json'
  12. body:
  13. 'prompt': '{{prompt}}'
  14. 'model':
  15. '{{model}}'
  16. #
  17. # Parse OpenAI response
  18. transformResponse: 'json.choices[0].message.content'
  19. tests:
  20. - vars:
  21. model: gpt-5
  22. topic: bananas
Tip!

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

Comments

Loading...