https://promptfoo.dev/ logo
JavaScript provider from module
# ❓|questions
p
Would it be possible to log a JavaScript (esm) provider from a module, say like “my library/promptfoo-provider”. It currently defeats the file name detection and I could not find a url scheme that would enable this.
s
Are you trying to load something from an installed package? If that doesn't work, you can create a local wrapper file, re-export the provider.
p
I currently drop a provider.mjs file but I was hoping to stop doing that by moving it to a module.