OpenAI Assistants API + Function Calling 🚀 How to get Started? (FULL Tutorial) AMAZING! 🤯

preview_player
Показать описание
Assistants API Function Calling
🤖 Learn How to Supercharge Your OpenAI Assistant with Function Calling!

🚀 Integrate custom functions into OpenAI's Assistant API.
💻 Step-by-step coding tutorial for seamless integration.
📈 Use real-world examples like stock price retrieval.
🔧 Master handling 'requires action' status and JSON parsing.
💡 Expand your OpenAI API skills with advanced functions.
👍 Like, Share, and Subscribe for more cutting-edge AI tutorials!

Timestamps
0:00 - Assistant API Integration Intro
0:20 - Function Calling Overview
1:25 - Stock Price Query Example
2:03 - Real-Time Stock Function Integration
3:16 - Defining API Functions
4:00 - Handling 'Requires Action' Status
5:13 - Executing Function Results
6:30 - Final Code Demonstration
7:12 - Advanced API Functions Preview

Function Definition in Assistants API 🤖:
- Upgrade to Python SDK v1.2 with pip install --upgrade openai.
- Define functions when creating an Assistant.
- Example: Creating a weather bot with functions like getCurrentWeather.

Reading Functions in a Run 📚:
- Assistant enters requires_action status when calling functions.
- Function calls are identified by names and arguments.

Submitting Function Outputs 🔄:
- Run continues after output submission.

Overview of Assistants API Beta 🌐:
- Supports tools like Code Interpreter, Retrieval, and Function calling.
- Integration involves creating an Assistant, a Thread, adding Messages, and running the Assistant.

Creating and Running an Assistant 🛠️:
- Example: Create a personal math tutor Assistant with Code Interpreter.
- Add user Messages to a Thread and run the Assistant for responses.
- Display the Assistant's response to the user. 📈📝

#AssistantsAPI #FunctionCalling #functionintegration #openai #assistantapi #codingtutorial #apitutorial #stockpriceretrieval #jsonparsing #pythoncoding #openaipython #aiintegration #softwaredevelopment #aitutorial #customfunctions #apiintegration #real-timedata #yahoofinanceapi #openaitools #aicoding #apidevelopment #programmingskills #advancedfunctions #apiguide #assistantdevelopment #aifunctionality #openaisdk #pythonprogramming #apiskills #functioncalling #openaiassistant #codeinterpreter #retrievaltool #assistanttools #aicapabilities #apicapabilities #functionimplementation #openaiapitutorial #assistantapiguide #openaibeta #airesponses
Рекомендации по теме
Комментарии
Автор

It's amazing how I went from creating my custom GPT and having an idea using some APIs, and then I run across this video that I needed. Love it!

cutty
Автор

I love how you start almost every video with "This is huge!" - The passion about AI is great. Keep up the good work.

Chasingaxl
Автор

Why do programmers like dark mode?
Because light attracts bugs

Nice video bro <3

Doggy_Styles_Coding
Автор

Great content once again! Thank you Mervin!

nicklopacki
Автор

Tried it, works great, very helpful and well described video. Thank you for sharing!

oieieio
Автор

Thanks for the awesome Tutorial!! I do have one suggestion though,
Could you not Zoom in so much when showing your editor?
Or maybe just zoom out when running through your code as a whole?
It makes it really difficult to read and get the full context!

joshuashepherd
Автор

Thank you. This is exactly what I needed.

ai_osas
Автор

Can you upload a tutorial for zapier and GPTs and how to add Actions when building a GPT? So how to create a OpenAI schema for GPTs

Plainviewai
Автор

Nice video. Can you please tell me if the prompt is not matching with our function, then GPT will search from the OpenAI ?

Spk
Автор

So to properly write these assitants. I shoujld download python AND use the playground from OpenAI? I am pretty new to coding and API but I am trying to create these

BGIANAKy
Автор

Can you also share a video explaining Streaming on Function calling

KajolMehta-zq
Автор

ok this is all happening inside the IDE, but how can we use those functions on the gpt website?

apmanti
Автор

hey mate could you zoom in a little more please? I can still vaguely make out the text on your screen

dead_protagonist
Автор

it will be intresting to see how it works when function has mutiple input parameters i.e. how accurate is payload generation for api call

shalabhgarg
Автор

The part I don't understand yet is, with the Python code where do you host it so the Assistant can call it. Then in the OpenAI assistants dashboard under functions say you have function Name: Get_weather and you hit test button. How does the Assistant know where the code is in relation to Get_weather? There is no endpoint etc set up? Im so confused on this part. Someone please help! haha

Blissiralabs
Автор

Tnx! I am looking for a function just to give me a json Format back. So I defined this as a function. It ask for required action (success), but I Would not need it. Is there a way to skip this step already within the function of the assistant?

dwr
Автор

Awesome video! how would you propose to have the assistant gather or generate some type of data for example like a uuid and a name it gathers from the user that can then be passed to the function that can then be passed as an argument to the function so it can trigger some API post requests?

shaunpx
Автор

is python enough to learn as a basic knowledge to run this and no code apps? or do we need other languages to learn u think?

salmasaad
Автор

Can you make the "requires_action" to trigger the function inside of OpenAI's playground? Or is it only possible through the python library as you showed?

miluna
Автор

Hey do you know how can I use my gpts in WhatsApp

LEARNSPANISHKIDS-ghdr