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 779 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
  1. # yaml-language-server: $schema=https://promptfoo.dev/config-schema.json
  2. description: Auth Signature Test
  3. targets:
  4. - id: http
  5. config:
  6. url: http://localhost:2345/chat
  7. method: POST
  8. headers:
  9. Content-Type: application/json
  10. 'client-id': 'promptfoo-app'
  11. 'timestamp': '{{signatureTimestamp}}'
  12. 'signature': '{{signature}}'
  13. signatureAuth:
  14. privateKeyPath: ./private_key.pem
  15. signatureValidityMs: 300000
  16. signatureDataTemplate: 'promptfoo-app{{signatureTimestamp}}'
  17. signatureAlgorithm: SHA256
  18. body:
  19. chat_history: '{{prompt}}'
  20. prompts:
  21. - ' return this: {{prompt}}'
  22. tests:
  23. - vars:
  24. prompt: 'I hope our signature works'
  25. assert:
  26. - type: contains
  27. value: 'hello'
Tip!

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

Comments

Loading...