The OpenAI (Python) API | Introduction & Example Code

  Рет қаралды 19,980

Shaw Talebi

Shaw Talebi

Күн бұрын

This is the 2nd video in a series on using Large Language Models (LLMs) in practice. Here I present a beginner-friendly introduction to the OpenAI Python API with example code.
Series Playlist: • Large Language Models ...
📰 Read more: towardsdatascience.com/cracki...
💻 Example code: github.com/ShawhinT/KZfaq-B...
OpenAI API: platform.openai.com/overview
--
Book a call: calendly.com/shawhintalebi
Homepage: shawhintalebi.com/
Socials
/ shawhin
/ shawhintalebi
/ shawhint
/ shawhintalebi
The Data Entrepreneurs
🎥 KZfaq: / @thedataentrepreneurs
👉 Discord: / discord
📰 Medium: / the-data
📅 Events: lu.ma/tde
🗞️ Newsletter: the-data-entrepreneurs.ck.pag...
Support ❤️
www.buymeacoffee.com/shawhint
Intro - 0:00
What's an API? - 0:52
OpenAI's Python API - 2:19
API Features & Models - 3:30
Tokens & Pricing - 5:48
Getting Started (4 Steps) - 7:42
Example Code: the basics - 11:00
Example Code: Lyric Completion Assistant - 18:14

Пікірлер: 54
@serinevcim5390
@serinevcim5390 2 күн бұрын
maaaan, you are explaining everything-every term that would make me feel like the most stupid person when I ask to another person. tysm!
@ShawhinTalebi
@ShawhinTalebi 7 сағат бұрын
Glad it's helpful :)
@krishnavamsiyerrapatruni5385
@krishnavamsiyerrapatruni5385 Ай бұрын
Loving the series so far! I am 2 videos in and I feel like you are balancing very well between making these tutorials beginner-friendly and not giving just superficial knowledge.
@AniHunsaker
@AniHunsaker Ай бұрын
You're a real Ph.D. with extremely understandable way of explaining things you have an obvious expertise in.
@ShawhinTalebi
@ShawhinTalebi Ай бұрын
Thanks, glad it was helpful 😁
@johnturner4128
@johnturner4128 3 ай бұрын
Have to say. Very clear and crisp delivery of material. I have been in software for 35 years … lots of great stuff. Not many have I run across with this guys rhetorical skills. Thanks!
@ShawhinTalebi
@ShawhinTalebi 3 ай бұрын
Thanks John! It's been a long road to get here 😅
@aihome242
@aihome242 6 ай бұрын
after looking for a logical simple explanation over and over in videos and text you video has made the most sense, Thank you for explaining it like that!
@ShawhinTalebi
@ShawhinTalebi 6 ай бұрын
Great to hear! Glad it helped :)
@ifycadeau
@ifycadeau 10 ай бұрын
Finally! Someone explaining this well 🤩👏🏾
@ShawhinTalebi
@ShawhinTalebi 10 ай бұрын
Thanks, glad you liked it!
@kaikiefer8303
@kaikiefer8303 2 ай бұрын
Well prepared and presented. This is super helpful and clear. can not wait to get started with a local LLM.
@user-xj1pr3pn1p
@user-xj1pr3pn1p 2 ай бұрын
What you said is what I've been looking for, It is very clear and useful, thanks very much!
@jagtapjaidip8
@jagtapjaidip8 19 күн бұрын
Thank you. Very nice information. I love your interpretation in the end about new genre.
@Anton_De_Swardt
@Anton_De_Swardt 2 ай бұрын
Like many others who've commented, I've found my guide to the world of AI, LLMs, etc, thanks Shaw!
@ShawhinTalebi
@ShawhinTalebi 2 ай бұрын
Glad it was helpful! 😁
@girmayohannis4659
@girmayohannis4659 Ай бұрын
Super guide and content.I ever liked this.I more expect in NLP tutorial text classification.
@joachimguth6226
@joachimguth6226 5 ай бұрын
Well sized, well explained, go on, it is exceptional in this line
@ShawhinTalebi
@ShawhinTalebi 5 ай бұрын
Thanks, glad you liked it :)
@60pluscrazy
@60pluscrazy 7 ай бұрын
This play list is so important 🎉🎉🎉 thanks 🙏
@ShawhinTalebi
@ShawhinTalebi 7 ай бұрын
Thanks, glad it’s helpful 😁
@ShawhinTalebi
@ShawhinTalebi 10 ай бұрын
More in this series 👇 - Introduction: kzfaq.info/get/bejne/qqx4mLiEr6e9knk.html - 🤗Transformers Intro: kzfaq.info/get/bejne/oMeeY5qY0dXFgps.html 📰Read more: towardsdatascience.com/cracking-open-the-openai-python-api-230e4cae7971?sk=b8da36097d9335fb28b396e67396a66b 💻Example code: github.com/ShawhinT/KZfaq-Blog/tree/main/LLMs/openai-api
@ajitdukale1980
@ajitdukale1980 5 ай бұрын
Amazing Explanation 👏👏
@ShawhinTalebi
@ShawhinTalebi 5 ай бұрын
Thanks, glad it was clear!
@lekhoi8
@lekhoi8 5 ай бұрын
Pretty cool, thank you 🤩
@ShawhinTalebi
@ShawhinTalebi 5 ай бұрын
Glad you like it!
@ianbraganza3065
@ianbraganza3065 2 ай бұрын
Thank you very much for this video! It was super helpful, I can now leverage Open AI's API and this is a game changer for me. I'm also now going to listen to Roxette :)
@ShawhinTalebi
@ShawhinTalebi Ай бұрын
Their song was stuck in my head the whole time I was making this video😂😂
@ammar_maamoun
@ammar_maamoun Ай бұрын
From Egypt that amazing pro
@himanshupatidar8040
@himanshupatidar8040 4 ай бұрын
awesome explanation.
@ShawhinTalebi
@ShawhinTalebi 3 ай бұрын
Glad it was clear 🙂 -ShawGPT
@usamaniaz2981
@usamaniaz2981 5 ай бұрын
Bravo! loved it...
@ShawhinTalebi
@ShawhinTalebi 5 ай бұрын
Thanks :)
@halle845
@halle845 3 ай бұрын
Thanks!
@ShawhinTalebi
@ShawhinTalebi 3 ай бұрын
Thanks so much! Glad it was helpful 😁
@puchki2015
@puchki2015 7 ай бұрын
Hi, Can you please make a video of some real use cases of LLM with all the advanced features and code walkthrough. I really like your video because of the way you explain the technical and implementation details.
@ShawhinTalebi
@ShawhinTalebi 7 ай бұрын
Thanks for the feedback. Yes I definitely will. Here's what I have on my list, do you have any suggestions? - Text similarity using SBERT (request) - How to build a robust RAG system - How to fine-tune a model for domain-specific question answering
@spotnuru83
@spotnuru83 5 ай бұрын
@@ShawhinTalebi this will be of great help
@amparoconsuelo9451
@amparoconsuelo9451 6 ай бұрын
May I know the following: 1) Can AI act as a code interpreter? 2) Can AI compile and link source codes? 3) Can AI code in different languages in one program? 4) Can AI be instructed to create codes in 8-, 16-, 32-, 64-, 128- and so on bit? 5) Can AI create a computer language and the compiler and interpreter therefor and operating system? 6) Can AI disassemble a Lisp, Fortran, COBOL, or Ada application and create the code for the corresponding compiler? 7) Can AI create a boot sector? 8) Can AI convert a CD and flash drive into start up devices? 9) Can AI make several copies of LLM? 10) Can AI do pre-training, fine-tuning and re-fine-tuning?
@ShawhinTalebi
@ShawhinTalebi 6 ай бұрын
AI is a broad term so I will try to answer your questions in regards to LLMs. (Most) LLMs simply generate text. Therefore, it alone cannot do many of the things you mentioned. However, by embedding an LLM into a larger software product, you can accomplish just about any of these things and call it an AI. Happy to chat more during office hours: calendly.com/shawhintalebi/office-hours
@johnturner4128
@johnturner4128 3 ай бұрын
Have a question. I have seen several surges in the software field over the past 35 years. One of the hardest parts of software developed by a company, for their use, is project management. A product owner see's some changes that will, ultimately, increase shareholder wealth, and writes them down. Lets say a scrum team is assigned the work ... in the case we have here - what are your thoughts on how AI can improve the predictability of quality tested software delivered on time? Again, software is software ... math is math. Thanks, John
@ShawhinTalebi
@ShawhinTalebi 3 ай бұрын
Great question. The best predictor of project timelines are the durations of past projects with a similar scope. I could imagine an data-driven (AI) tool that integrates into Jira (or the like) that gives project estimates given factors such as scope and available resources.
@amparoconsuelo9451
@amparoconsuelo9451 6 ай бұрын
Please display the full code and mention the Python version and system configuration.
@ShawhinTalebi
@ShawhinTalebi 6 ай бұрын
Code and env files are available here: github.com/ShawhinT/KZfaq-Blog/tree/main/LLMs/openai-api
@brandonquinto4852
@brandonquinto4852 27 күн бұрын
'ging ist' is German, for 'went is' and I have no idea why that would be a completion
@ShawhinTalebi
@ShawhinTalebi 21 күн бұрын
Interesting! The Germans may be big Roxette fans 😂
@md.mizanurrahmanxendpdc.369
@md.mizanurrahmanxendpdc.369 Ай бұрын
I just want to see the results first
@vcool
@vcool 2 ай бұрын
Should've used GPT-4, not GPT-3.5.
@ShawhinTalebi
@ShawhinTalebi 2 ай бұрын
I have an example with that here: kzfaq.info/get/bejne/arhxqa2lmMy7n30.html
@knusperkrusteamstitzel7251
@knusperkrusteamstitzel7251 4 ай бұрын
The way you pronounced "ging ist" makes me believe you also speak german. Stimmt's?
@ShawhinTalebi
@ShawhinTalebi 4 ай бұрын
Interesting, my German is limited to what I learned watching a KZfaq tutorial 😂
@fakecubed
@fakecubed 2 ай бұрын
Seems counterproductive to teach people OpenAI, which is anything but open, when talking about programmatically working with LLMs. You should steer people towards the actually open LLMs that can be run locally for free. OpenAI is eventually going to be going out of business, once people realize the downsides outweigh any ease of use and first-mover advantage they once had, and the venture capital dries up. The open models with better licenses are already outperforming GPT anyway, and their approach to the technology is rapidly becoming obsolete. Teach people skills that will actually be useful for the open source AI development that will still be around in the future.
@ShawhinTalebi
@ShawhinTalebi 2 ай бұрын
While OpenAI conceals their models behind their API, given the SOTA performance of their current models, there are still situations where using them makes sense (at least for now). I cover open-source technologies in other videos in this series: kzfaq.info/sun/PLz-ep5RbHosU2hnz5ejezwaYpdMutMVB0
@jakewastaken
@jakewastaken 2 ай бұрын
The last minute of this video mentions that his next video actually gets into that. That said, I’m hoping we get a Poe and Perplexity api video sometime too.
Generative AI in a Nutshell - how to survive and thrive in the age of AI
17:57
The Worlds Most Powerfull Batteries !
00:48
Woody & Kleiny
Рет қаралды 27 МЛН
когда достали одноклассники!
00:49
БРУНО
Рет қаралды 4,2 МЛН
Omega Boy Past 3 #funny #viral #comedy
00:22
CRAZY GREAPA
Рет қаралды 36 МЛН
WHY THROW CHIPS IN THE TRASH?🤪
00:18
JULI_PROETO
Рет қаралды 5 МЛН
Fine-tuning Large Language Models (LLMs) | w/ Example Code
28:18
Shaw Talebi
Рет қаралды 244 М.
A Simple Kafka and Python Walkthrough
11:34
Quix
Рет қаралды 3,7 М.
This Is Why Python Data Classes Are Awesome
22:19
ArjanCodes
Рет қаралды 790 М.
Prompt Engineering: How to Trick AI into Solving Your Problems
29:58
How to Improve LLMs with RAG (Overview + Python Code)
21:41
Shaw Talebi
Рет қаралды 21 М.
I Was Wrong About AI Consulting (what I learned)
9:56
Shaw Talebi
Рет қаралды 6 М.
OpenAI Embeddings and Vector Databases Crash Course
18:41
Adrian Twarog
Рет қаралды 390 М.
GPTs vs Assistants API - which one is best for you?
13:09
The Worlds Most Powerfull Batteries !
00:48
Woody & Kleiny
Рет қаралды 27 МЛН