https://promptfoo.dev/ logo
Doubt about how to connect
# questions
j
Hi, i want to test Promptfoo on my company, for authenticate against the chatbot some steps are required, u log It, It generates a sso token, with that token you generate an authentication token, and with It generates the session id for the chatbot, the people that manage the chatbot connect to It using Python script, theres any way i can include all those headers in the .yaml config file or how i should do It. thanks in advance. https://cdn.discordapp.com/attachments/1414894018130612324/1414894018688450631/image001_1.png?ex=68c13a3d&is=68bfe8bd&hm=aa0b1720fa4dc4b914b18e155486a236bf1e8d596d205a609fc62594a904a0dd&
r
you could either include the final authentication token in the config file or env variable and have the config of provider like:
Copy code
config:
      apiHost: "yourAIhost.com"
      apiKey: sk-abc123
or use a python script as a provider, where you call the ai manually: https://www.promptfoo.dev/docs/providers/python/
w
I also recommend using a Python provider