Promptfoo using mitmproxy or mitmweb
What
If you wish to MITM the requests being made from Promptfoo ⧉, you are able to by setting up a mitm proxy.
This example uses mitmproxy
⧉, specifically mitmweb
which presents you with a web interface
Setup Promptfoo
From the directory you wish to run the promptfoo
cli from, you require the below environment variables
PROMPTFOO_CA_CERT_PATH
HTTPS_PROXY
export PROMPTFOO_CA_CERT_PATH=~/.mitmproxy/mitmproxy-ca-cert.pem
export HTTPS_PROXY=http://127.0.0.1:8080/
You can then run the promptfoo
CLI
Want to make this site better? Open a PR or help fund hosting costs