Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel
Michael fc4a6bbc7d
docs(examples): update model references from gpt-4o-mini to gpt-4.1-mini (#4289)
2 months ago
..
360d7b519d
docs(examples): add uniform init commands to all example READMEs (#4068)
3 months ago
fc4a6bbc7d
docs(examples): update model references from gpt-4o-mini to gpt-4.1-mini (#4289)
2 months ago
874d93b56e
docs: Update example configs with descriptions (#4283)
2 months ago
bf81260b44
Simplify API and add support for unified test suite definition (#14)
2 years ago
bf81260b44
Simplify API and add support for unified test suite definition (#14)
2 years ago
d4d31594aa
feat(providers): add support for Claude 3.5 Haiku model (#2066)
9 months ago

README.md

You have to be logged in to leave a comment. Sign In

custom-provider (Custom Provider)

You can run this example with:

npx promptfoo@latest init --example custom-provider

This example uses a custom API provider in customProvider.js. It also uses CSV test cases.

Run:

promptfoo eval

Full command-line equivalent:

promptfoo eval --prompts prompts.txt --tests vars.csv --providers openai:chat --output output.json --providers customProvider.js
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...