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 d4d31594aa
feat(providers): add support for Claude 3.5 Haiku model (#2066)
9 months ago
..
806e52216f
chore(docs): add shell syntax highlighting and fix typos (#953)
1 year ago
cd8b724dbf
feat(groq): integrate native Groq SDK and update documentation (#1479)
1 year ago
d4d31594aa
feat(providers): add support for Claude 3.5 Haiku model (#2066)
9 months ago
76797692e5
feat(schema): add yaml schema validation to config files (#1990)
10 months ago

README.md

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

To get started, set your OPENAI_API_KEY and ANTHROPIC_API_KEY environment variables.

This example demonstrates how to use promptfoo to call functions using OpenAI and Anthropic's API. Please see the documentation below on how to define functions for each type of provider.

Note that the function and tool syntax differ slightly between the two providers.

The configuration for this example is specified in promptfooconfig.yaml. To run the example, execute the following command in your terminal:

promptfoo eval

Afterwards, you can view the results by running promptfoo view.

Tip!

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

Comments

Loading...