https://promptfoo.dev/ logo
Promptfoo with vitest and gemini
# questions
g
Hey there, Trying to set up promptfoo with our existing vitest setup within a next.js project. We are currently using gemini as our main provider. I wanted to set up a GradingConfig, i see there's a space for provider, how can I give it the API key?
so something like defaultConfig = { provider: "2.5", apiKey: env api key }
I would really appreciate some help on this, theres little documentation on the vitest side
i
so just to make sure I understand, you want gemini to do all the judging/grading?
g
Just to clarify, what i want to do is: Use gemini within vitest Use a custom api key within gemini