OpenAI Assistants API Parallel Function Calling + Node.js ๐คฏ Custom GPT ๐ (Step-by-Step Tutorial)
Key Takeaways
This video demonstrates how to integrate multiple software functions into GPT assistants using the OpenAI Assistants API and parallel function calling in Node.js, allowing users to fetch stock prices, perform currency conversions, and retrieve the latest news simultaneously.
Full Transcript
this is amazing what if you can integrate multiple functions multiple softwares in your GPT assistants using assistance API not only that what if you can trigger this parallel function calling in your nodejs application that's exactly what we're going to see today let's get [Music] started hi everyone I'm really excited to show you about parallel function calling using node.js in this we'll be seeing how a user can interact with multiple functions such as getting a stock price currency conversion and also getting the latest news I'm going to take you through step by step on how to do this but before that I regularly create videos in regards to Artificial Intelligence on my YouTube channel so do subscribe click the like button and stay tuned coming to parallel function calling in this application we are going to make a user to call all these three functions we have already covered how to call one function in my previous video which I will link that in in the description below in this we going to add two more function currency conversion and retrieving the latest news of a company as a continuation from my previous video we already created get stock price function and then we Define the function definition in the tools variable and then we pause this tools inside the assistance. create function here we also started creating assistant and running it by defining your assistant creating a thread and sending a message then creating a message creating and run with custom instructions now we going to add two more functions to implement parallel function calling so this is our package.json the list of packages we are installing first is node fetch to fetch from a URL next is open Ai and third one is Yahoo finance to get the stock price in the terminal make sure you install npm install node fetch next npm install open Ai and npm install Yahoo finance 2 next export your open a API key like this and Export your genus API key like this which you can generate from genus website to get the latest news of a company now we're going to add two more functions first import fetch from node fetch then Asing function get latest company news and then we are passing the GS API key and we are fetching the API URL to get the latest news of the company NeXT another function USD to gpp conversion we are going to use exchange rate API URL then we are fetching the conversion data we are now completed creating the second function now we going to add our function definition previously we have only get stock price now we're going to add get latest company news function definition with company name as a required field and then USD to GBP conversion and only required is USD amount then this tools definition will be passed to assistant do create as we have done before and lastly we need to add our functions in the dispatch table so first the company news next USD to gbb conversion so when the application check the status equals request action it'll automatically Loop through all these functions and run these functions parallely so when we run the assistant and when the status is equals requires action that's when we Loop through all the three functions and run those functions back now we going to run this code node parall function calling. JS and click enter now we can see it goes to the required action status and it's calling two functions one is get stock price another one is get latest company news at the same time it provides the required AAPL symbol and apple the company name then this will trigger our dispatch table looping through all those functions and it will return the output back to the assistance API again now there's another function being called USD to gpp by providing the USD amount this can be called only at this stage because in the previous stage we need to retrieve the stock price and in this stage we converting to gpp we can see that stat is in progress now it got completed assistant here is the latest information you requested for Apple stock price $11 191 stock price in gpp p150 and the latest news three reason you should try Apple's joural app these Apple AAG deals make great gifts for forgetful friends and it gave us 10 News the question we asked is can you please provide me stock price stock price in GBP and the company news of Apple the question we mentioned here when we created the message that's it as simple as that now you are able to run parallel function calling using your nodejs application I'm going to create more videos similar to this so stay tuned I hope you like this video video do like share and subscribe and thanks for watching
Original Description
๐ฅ Discover the Power of Parallel Function Calling in Node.js / Javascript with GPT Assistants!
๐ค Learn how to integrate multiple software functions into your GPT assistants.
๐น Master fetching stock prices, performing currency conversions, and retrieving the latest news โ all at once!
๐ ๏ธ Step-by-step guide on implementing additional functions in your existing Node.js application.
๐ง Get insider tips on package installation, API setup, and function definitions.
โจ See real-time examples of parallel function execution and get results like never before.
๐ Timestamps:
0:00 - Introduction to Parallel Function Calling
0:30 - Interacting with Multiple Functions
1:00 - Adding Currency Conversion and News Retrieval Functions
1:40 - Setting up Packages and APIs
2:10 - Writing Function Definitions
3:00 - Dispatch Table and Parallel Execution
3:35 - Running the Code and Observing Output
๐ Benefits of Watching:
Enhance your Node.js skills with cutting-edge techniques.
Boost your AI integration capabilities.
Gain practical, hands-on experience with real examples.
Stay ahead in the rapidly evolving field of AI and software development.
What if you could integrate multiple functions and software into your GPT assistance using assistance API? In this video, we'll show you exactly how to do that, as well as how to trigger parallel function calling in your Node.js application. Get ready to take your programming skills to the next level! Don't forget to subscribe for more exciting tutorials like this one.
GPT Assistants Function Calling + Node.js : https://www.youtube.com/watch?v=YTURKTxMaZE
GPT-4 Assistants API +Node: https://www.youtube.com/watch?v=CPlwcY5mQ_4
ChatGPT Tutorials Playlist: https://www.youtube.com/playlist?list=PLYQsp-tXX9w62Lgpvx2JMBvKAAi7rfb_t
GPT-4 Assistants API + Python: https://www.youtube.com/watch?v=pZUDEQs89zc
ChatGPT Beginners Guide: https://www.youtube.com/watch?v=_E9rqrnPzWI
GPT-4 Turbo: https://www.youtube.com/watch?v=Fo0KEPP7Nt4
GPT-4 Seed: htt
Watch on YouTube โ
(saves to browser)
Sign in to unlock AI tutor explanation ยท โก30
Playlist
Uploads from Mervin Praison ยท Mervin Praison ยท 0 of 60
โ Previous
Next โ
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
Build GCP Infra using Pulumi in YAML format
Mervin Praison
How to Convert a Pulumi YAML File to Python Format
Mervin Praison
Speed Up AWS EKS: A Complete Guide to Performance Tuning & Debugging!
Mervin Praison
Learn GCP GKE to AWS EKS Migration in Just 5 Minutes: Quick Guide
Mervin Praison
AWS & Kubernetes: The Definitive Guide to Data Persistence with PV and PVC
Mervin Praison
ChatGPT Voice Conversation RELEASED! It's AMAZING!! (Demo)
Mervin Praison
How to Install Mistral 7B in Minutes: Quick & Easy Guide! โ
Mervin Praison
Code Llama Install Locally: ๐๐ป Elevate Your Python Skills!
Mervin Praison
Orca Mini: Your Ultimate Guide to Install and Test on Mac & Linux ๐ป
Mervin Praison
Quick & Easy Vicuna Setup on Mac and Linux ๐ป
Mervin Praison
Quick Guide: Llama2 Local Installation and ChatGPT with pip! Python๐ ๏ธ
Mervin Praison
Query PDFs Like a Pro with Local GPT: Full Setup Guide! ๐
Mervin Praison
LM Studio: EASIEST way to Run Large Language Models Locally!
Mervin Praison
AMAZING ChatGPT Vision is OUT! ๐คฏ 14+ Examples (Step-by-Step) FULL Tutorial
Mervin Praison
Unbelievable! Build ANY App Instantly with Smol AI! ๐ฒ๐ฅ
Mervin Praison
Amazing! AutoGen Made Easy: A Step-by-Step Beginners Guide ๐
Mervin Praison
How to Set Up LoLLMS and Run LLMs Locally! ๐ Step-by-Step Tutorial
Mervin Praison
GPT4All: INSANE Way to Run Large Language Models Locally! ๐ฒ Step-By-Step Tutorial
Mervin Praison
Incredible AI-Powered NPCs in Unity Game Engine: Step by Step Tutorial!๐คฏ
Mervin Praison
MemGPT ๐ง LLM as Operating System. It's INSANE! Step-by-Step Tutorial ๐คฏ
Mervin Praison
Text Generation Web UI: MIND-BLOWING Way to Run LLM Locally! ๐คฏ
Mervin Praison
Unlock the INSANE Power of OpenAI GPT-4 with C#/.NET! ๐ฒ
Mervin Praison
Integrate Langchain and Ollama for Local AI Power ๐คฏ Indeed POWERFUL!
Mervin Praison
ChatDev: INSANE Virtual AI Agents! Future of Software Development ๐ฒ
Mervin Praison
Query PDFs Using Mistral: Unlock INSANE Power! ๐คฏ
Mervin Praison
AutoGen + Open-Source LLMs: UNBELIEVABLE! Step-by-Step Tutorial You Can't Miss! ๐คฏ
Mervin Praison
AutoGen + Text Generation WebUI: Unbelievable 100% Local Private Setup ๐คฏ
Mervin Praison
MemGPT: Amazing! External Context for LLM #ai #llm #memgpt #generativeai #mem #gpt #openai #chatgpt
Mervin Praison
GeniA: Kubernetes + AI for MIND-BLOWING Operational Efficiency! ๐คฏ FULL Tutorial
Mervin Praison
VertexAI Meets LangChain for Mind-Blowing AI Conversations! ๐ฒ Step by Step Tutorial
Mervin Praison
Simplified ChatGPT API Setup on Node.js for Newbies! ๐ Step by Step Tutorial
Mervin Praison
Autogen: Ollama integration ๐คฏ Step by Step Tutorial. Mind-blowing!
Mervin Praison
LiteLLM: One-Function Call to ANY Large Language Model! ๐คฏ UNBELIEVABLE!
Mervin Praison
ChatGPT Chatbot in Less Time Than You Think! ๐๐ Step-by-Step Tutorial
Mervin Praison
LiteLLM Chatbot: Build Your Own in MINUTES! INSANE! ๐ค๐ฅ
Mervin Praison
Create Chatbot: Turn ANY Open-Source LLM into a Conversation Pro! ๐ค
Mervin Praison
Create Chatbot: Ollama Integration Made UNBELIEVABLY Easy! ๐
Mervin Praison
LlamaIndex + ChatGPT: Ingest Data and Experience UNBELIEVABLE Query Results! ๐
Mervin Praison
INSANE! OpenAgents: Automated Data Analysis with Kaggle ๐คฏ
Mervin Praison
React.js LLM Agent for Next-Gen Coding using ChatGPT ๐ Mind-Blowing ๐คฏ
Mervin Praison
MemGPT + Any LLM ๐ 100% Local & Private Integration Unveiled! Unlimited Memory
Mervin Praison
MemGPT + AutoGen ๐ง ๐ค Unlimited Memory & Autonomous AI Agents! INSANE๐คฏ
Mervin Praison
AutoGen + Google's Palm LLM & More! Revolutionary AI Integration ๐
Mervin Praison
MemGPT & LM Studio Integration Revealed! ๐ฅ Next-Level AI
Mervin Praison
๐ AutoLLM: Unlock the Power of 100+ Language Models! Step-by-Step Tutorial
Mervin Praison
AutoLLM & Gradio Integration You Won't Believe! ๐คฏ Mind-Blowing
Mervin Praison
AutoLLM & FastAPI Tutorial: Query 100+ Language Models! ๐ฑ
Mervin Praison
Quivr: LLM's Second Brain - Transforming Data Management & Advanced Query with AI! ๐คฏ
Mervin Praison
AutoGen & MemGPT with Local LLM: A Complete Setup Tutorial! ๐ง AMAZING ๐คฏ
Mervin Praison
LocalAI: Free, Open Source OpenAI Alternative ๐ INSANE ๐คฏ Step-by-Step Tutorial
Mervin Praison
Yarn Mistral 7B 128k LARGE context window, Small size ๐คฏ INSANE ๐ Setup Tutorial!
Mervin Praison
Zephyr-7B: The Small and Mighty LLM ๐คฏ Step by Step Tutorial! ๐
Mervin Praison
Promptfoo: How to Test Your LLM ? ๐ VERY EASY!
Mervin Praison
Pydantic: How to Validate LLM Responses? ๐ Quality Response. VERY EASY!!!!
Mervin Praison
Pydantic: FORCE Your AI to Respond Back in UPPERCASE! ๐คฏ Step-by-Step Tutorial ๐ฅ
Mervin Praison
Pydantic: How to use LLM to convert unstructured data to structured data?
Mervin Praison
AutoGen Function Calling: INSANE ๐ Custom Integrations! Step-by-Step Tutorial ๐คฏ
Mervin Praison
OpenAI Assistants API + Python ๐ค How to get started? (FULL Tutorial) ๐คฏ INSANE
Mervin Praison
GPT-4 Vision API ๐คฏ INSANE Video Recognition Powers! Step-by-Step Tutorial ๐
Mervin Praison
GPT-4 Vision API ๐ The Future of Image Recognition! ๐คฏ Step-by-Step Tutorial
Mervin Praison
More on: LLM Engineering
View skill โRelated Reads
๐ฐ
๐ฐ
๐ฐ
๐ฐ
A Silent Crash in Megatron-LMโs Gradient Clipping (and a Reviewer Who Made My Fix Better)
Medium ยท Machine Learning
Nemotron Labs: How Open Models Give Enterprises and Nations AI They Can Trust, Control and Customize
NVIDIA AI Blog
Building a Custom GPT / Chatbot for Your Own Use Case
Medium ยท Python
Building a Custom GPT / Chatbot for Your Own Use Case
Medium ยท RAG
Chapters (7)
Introduction to Parallel Function Calling
0:30
Interacting with Multiple Functions
1:00
Adding Currency Conversion and News Retrieval Functions
1:40
Setting up Packages and APIs
2:10
Writing Function Definitions
3:00
Dispatch Table and Parallel Execution
3:35
Running the Code and Observing Output
๐
Tutor Explanation
DeepCamp AI