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-advanced.yaml 1.6 KB

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
38
39
40
41
42
43
44
  1. # yaml-language-server: $schema=https://promptfoo.dev/config-schema.json
  2. description: Advanced Imagen configuration showing platform-specific settings
  3. prompts:
  4. - 'Create a {{quality}} image of {{subject}} with {{style}} aesthetic'
  5. providers:
  6. # Google AI Studio configuration (API key authentication)
  7. - id: google:image:imagen-4.0-generate-preview-06-06
  8. label: Imagen 4.0 (Google AI Studio)
  9. config:
  10. aspectRatio: '16:9'
  11. safetyFilterLevel: 'block_low_and_above' # Only value supported by Google AI Studio
  12. # Note: seed and addWatermark are not supported in Google AI Studio
  13. # Vertex AI configuration (OAuth authentication)
  14. - id: google:image:imagen-4.0-generate-preview-06-06
  15. label: Imagen 4.0 (Vertex AI)
  16. config:
  17. projectId: 'your-project-id' # Forces Vertex AI usage
  18. aspectRatio: '16:9'
  19. safetyFilterLevel: 'block_some' # Vertex AI supports all safety levels
  20. seed: 42 # Deterministic generation
  21. addWatermark: false # Disable watermark (incompatible with seed)
  22. # Imagen 3.0 - Only available through Vertex AI
  23. - id: google:image:imagen-3.0-generate-002
  24. label: Imagen 3.0 (Vertex AI only)
  25. config:
  26. projectId: 'your-project-id'
  27. aspectRatio: '1:1'
  28. safetyFilterLevel: 'block_fewest'
  29. personGeneration: 'allow_adult'
  30. tests:
  31. - vars:
  32. quality: 'photorealistic'
  33. subject: 'a serene mountain landscape'
  34. style: 'golden hour photography'
  35. assert:
  36. - type: javascript
  37. value: |
  38. // Check if the output contains a valid image data URL
  39. return output.includes('![Generated Image](data:image/')
Tip!

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

Comments

Loading...