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 922 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
  1. # yaml-language-server: $schema=https://promptfoo.dev/config-schema.json
  2. description: PFX Certificate Signature Authentication
  3. targets:
  4. - id: http
  5. config:
  6. url: https://localhost:2347/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. type: pfx
  15. pfxPath: ./examples/http-provider-auth-signature-pfx/certificate.pfx
  16. pfxPassword: 'password'
  17. signatureValidityMs: 300000
  18. signatureDataTemplate: 'promptfoo-app{{signatureTimestamp}}'
  19. signatureAlgorithm: SHA256
  20. body:
  21. chat_history: '{{prompt}}'
  22. prompts:
  23. - ' return this: {{prompt}}'
  24. tests:
  25. - vars:
  26. prompt: 'I hope our PFX signature works'
  27. assert:
  28. - type: contains
  29. value: 'hello from PFX authenticated endpoint'
Tip!

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

Comments

Loading...