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
e41f885740
feat: support typescript custom providers (#2285)
8 months ago
e41f885740
feat: support typescript custom providers (#2285)
8 months ago

README.md

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

custom-provider-mjs (Custom Provider Mjs)

You can run this example with:

npx promptfoo@latest init --example custom-provider-mjs

This example uses a custom API provider in customProvider.mjs. 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...