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 76797692e5
feat(schema): add yaml schema validation to config files (#1990)
10 months ago
..
333e61958f
fix(providers): fix error in loading openai externally defined function calls
11 months ago
333e61958f
fix(providers): fix error in loading openai externally defined function calls
11 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

OpenAI Function Call Example

This example demonstrates how to use promptfoo to evaluate OpenAI function calls. It showcases two different methods of defining functions: in an external YAML file and directly in the configuration file.

Setup

  1. Set your OPENAI_API_KEY environment variable:

    export OPENAI_API_KEY=your_api_key_here
    
  2. This example is pre-configured in promptfooconfig.yaml. You can review and modify it if needed.

  3. Run the evaluation:

    promptfoo eval
    
  4. View the results:

    promptfoo view
    
Tip!

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

Comments

Loading...