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 989 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
31
32
33
34
35
36
37
  1. # yaml-language-server: $schema=https://promptfoo.dev/config-schema.json
  2. description: Google Live Simple Audio Test
  3. prompts:
  4. - file://prompt.yaml
  5. providers:
  6. - id: 'google:live:gemini-2.0-flash-live-001'
  7. config:
  8. generationConfig:
  9. response_modalities: ['audio']
  10. outputAudioTranscription: {}
  11. speechConfig:
  12. voiceConfig:
  13. prebuiltVoiceConfig:
  14. voiceName: 'Charon'
  15. timeoutMs: 30000
  16. tests:
  17. - vars:
  18. question: "How you doin'?"
  19. assert:
  20. - type: contains
  21. value: well
  22. # Check that audio transcript was generated with JavaScript
  23. - type: javascript
  24. value: |
  25. return Boolean(
  26. context.providerResponse?.audio?.data &&
  27. context.providerResponse?.audio?.transcript?.length > 0
  28. );
  29. - vars:
  30. question: 'Why is Gemini model named Gemini?'
  31. assert:
  32. - type: llm-rubric
  33. value: Explains the reason why the model is named Gemini
Tip!

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

Comments

Loading...