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

README.md

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

function-tools-callback (Function Tool Callbacks Example)

You can run this example with:

npx promptfoo@latest init --example function-tools-callback

This example demonstrates how to use promptfoo to evaluate OpenAI's function calling capabilities with the gpt-4o, utilizing the functionToolCallbacks feature.

Configuration

See promptfooconfig.js for the full configuration, including prompts, provider setup, and test cases.

Running the Example

promptfoo eval -c [path to examples/function-tools-callback/]promptfooconfig.js

For more details on function calling and OpenAI tools, refer to:

Tip!

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

Comments

Loading...