https://promptfoo.dev/ logo
Is it possible to set `response_format` per test, ...
# ❓|questions
m
I have a single prompt that I want to use, but the JSON Schema for the response is different for each test. I see from the docs that it's possible to set the schema on the provider, or a prompt, but not for a test. Are there any known hacks of workarounds to make that work?
m
I threw up a quick prototype of this: https://github.com/promptfoo/promptfoo/pull/6239 Please have a look and let me know what you think
m
Wow, nice. Thank you. 🙏 I’ve reviewed the PR. It’s looks great.