"Error running promptfoo tests: Error: src must be a string or an object describing the source" is what I get when I try to set the defaultTest.options.provider like so:
defaultTest: {
assert: config.defaultAssertions.map((assertion) => ({
...assertion,
type: assertion.type as AssertType,
})),
options: {
provider: async (prompt: string) => validator.callApi(prompt),
},