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.image-generation.yaml 2.3 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
  1. # yaml-language-server: $schema=https://promptfoo.dev/config-schema.json
  2. description: AI image generation showcase
  3. prompts:
  4. - '{{prompt}}'
  5. providers:
  6. - id: hyperbolic:image:SDXL1.0-base
  7. label: SDXL Base
  8. config:
  9. width: 1024
  10. height: 1024
  11. steps: 30
  12. cfg_scale: 7.0
  13. # Note: These models may not be available with your current API key
  14. # - id: hyperbolic:image:SDXL1.0-base
  15. # label: SDXL Base
  16. # config:
  17. # width: 1024
  18. # height: 1024
  19. # steps: 30
  20. # cfg_scale: 7.0
  21. # - id: hyperbolic:image:SD1.5
  22. # label: SD 1.5
  23. # config:
  24. # width: 512
  25. # height: 512
  26. # steps: 25
  27. # cfg_scale: 7.5
  28. tests:
  29. # Dreamy artistic style
  30. - vars:
  31. prompt: 'A cat wearing sunglasses riding a unicorn through a rainbow portal, painted in Van Gogh style with swirling cosmic backgrounds'
  32. assert:
  33. - type: regex
  34. value: '^data:image/(jpeg|png|webp);base64,[A-Za-z0-9+/]+=*$'
  35. - type: cost
  36. threshold: 0.05
  37. # Futuristic scene
  38. - vars:
  39. prompt: 'A pizza-powered rocket ship delivering dinner to aliens on Mars, neon cyberpunk aesthetic with glowing cheese trails'
  40. assert:
  41. - type: regex
  42. value: '^data:image/(jpeg|png|webp);base64,[A-Za-z0-9+/]+=*$'
  43. # Whimsical portrait
  44. - vars:
  45. prompt: 'A distinguished octopus professor wearing a monocle and bow tie, teaching quantum physics to confused fish students'
  46. assert:
  47. - type: regex
  48. value: '^data:image/(jpeg|png|webp);base64,[A-Za-z0-9+/]+=*$'
  49. # Nature photography style
  50. - vars:
  51. prompt: 'A tiny dragon napping in a coffee cup surrounded by miniature autumn leaves, macro photography with golden hour lighting'
  52. assert:
  53. - type: regex
  54. value: '^data:image/(jpeg|png|webp);base64,[A-Za-z0-9+/]+=*$'
  55. # Epic fantasy scene
  56. - vars:
  57. prompt: 'A wizard penguin casting spells to create aurora borealis over an ice castle made entirely of crystallized music notes'
  58. assert:
  59. - type: regex
  60. value: '^data:image/(jpeg|png|webp);base64,[A-Za-z0-9+/]+=*$'
  61. # Sci-fi adventure
  62. - vars:
  63. prompt: 'An astronaut surfing on Saturn rings while juggling planets, photorealistic style with spectacular cosmic vista background'
  64. assert:
  65. - type: regex
  66. value: '^data:image/(jpeg|png|webp);base64,[A-Za-z0-9+/]+=*$'
Tip!

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

Comments

Loading...