This is the repository for the LinkedIn Learning course Function Calling with the OpenAI API. The full course is available from LinkedIn Learning.
Prompting is great, but sometimes you need a more programmatic approach. That’s where function calling comes in. In this course, senior staff instructor, web designer, and software developer Morten Rand-Hendriksen explains function calling with the OpenAI API.
This repository has no branches. Each example featured in the course is contained in a separate file, prefixed 01, 02, and 03. To follow along, open the relevant file and follow the instructions in the course.
To run the queries in the example files, you need an OpenAI API key.
- Sign up for the OpenAI API at https://platform.openai.com
- Generate a new key at https://platform.openai.com/account/api-keys.
- Copy the key (you only get to see it once).
- Open
/.vscode/settings.json
and paste your key where indicated (bottom of the file). - Open
01-standard-query.http
. - In the bottom toolbar, click on the words "No Environment" and change the setting to "openai". This will activate your key in the file and allow it to be used.
Morten Rand-Hendriksen
Developer and Senior Staff Instructor
Check out my other courses on LinkedIn Learning.