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 813 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
  1. # yaml-language-server: $schema=https://promptfoo.dev/config-schema.json
  2. description: Audio Input and Output Example
  3. prompts:
  4. - file://audio-input.json
  5. providers:
  6. - id: openai:chat:gpt-4o-audio-preview
  7. config:
  8. modalities: ['text', 'audio']
  9. - id: openai:chat:gpt-4o-mini-audio-preview
  10. config:
  11. modalities: ['text']
  12. tests:
  13. - vars:
  14. question: What is in this recording?
  15. audio_file: file://assets/Armstrong_Small_Step.mp3
  16. assert:
  17. - type: llm-rubric
  18. value: Is a speech by Neil Armstrong about the moon landing
  19. - vars:
  20. question: Is there a funny double meaning in this JFK speech?
  21. audio_file: file://assets/Kennedy_berliner.mp3
  22. assert:
  23. - type: llm-rubric
  24. value: Is a speech by John F. Kennedy in Berlin about being a jelly donut
Tip!

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

Comments

Loading...