in

OpenAI function calling



In this video we will go through the new feature “Function calling” of the OpenAI API (see more info here: https://openai.com/blog/function-calling-and-other-api-updates). First, I talk about the concepts and then I code up a small example where we implement a “financial analyst” bot.

Code from the video:
https://github.com/jankrepl/mildlyoverfitted/blob/master/mini_tutorials/openai_function_calling/example.py

00:00 Intro
00:15 Chat completions endpoint overview
01:26 Old API explanation
03:31 New API explanation
08:48 [Code] Setting things up
12:30 [Code] Defining 2 functions
15:51 [Code] Providing function metadata
20:55 [Code] Conversation loop
31:33 [Code] Trying things out
37:55 Outro

If you have any video suggestions or you just wanna chat feel free to join the discord server: https://discord.gg/a8Va9tZsG5

Twitter: https://twitter.com/moverfitted

Artificial Intelligence Robot Thinking

Building Creativity To Protect Against AI

Why you're about to see a lot more drones in the sky

Why you’re about to see a lot more drones in the sky