ChatGPT API in Python - Complete Tutorial for Beginners

  Рет қаралды 50,341

The PyCoach

The PyCoach

Күн бұрын

Пікірлер: 48
@ThePyCoach
@ThePyCoach Жыл бұрын
🔥 Get my FREE ChatGPT Cheat Sheet: frankandrade.ck.page/08c94cf1c1
@GianCampos
@GianCampos Жыл бұрын
Awesome video! The only video that explains what I was looking for! Thank you!
@ObservingBeauty
@ObservingBeauty Жыл бұрын
Very helpful. Especially assistant rule to save history. This is the most needed feature. Many thanks
@anksmoney
@anksmoney Жыл бұрын
Such a great video, super clear explanations as well. Could you do a video on how to train gpt on custom data sets soon?
@raplogics9349
@raplogics9349 Жыл бұрын
I was looking for something like this for soo long......Dudde, you're awesome...... you explained it so clearly.. definitely gonna make something using this infor
@hishamalawi6011
@hishamalawi6011 Жыл бұрын
I am new to this and was looking for tuts like this one to boost my confidence. Thanks
@chadconley9641
@chadconley9641 Жыл бұрын
Awesome tut. Thank you. Have you got any vids, or could you show us how to have chatGPT work from a provided context? For example, a repository of PDFs, like instruction manuals / procedures?
@123arskas
@123arskas Жыл бұрын
Great content as always
@megacryptertuto9701
@megacryptertuto9701 Жыл бұрын
super clear explanations thank you ❤
@brianmagnus2872
@brianmagnus2872 Жыл бұрын
Great video! Like others, do you think you can create a video and/or write a Medium article on how to train GPT on custom data (documentation)? Love to learn more on this topic. Thanks in advance!
@1mrnewton
@1mrnewton Жыл бұрын
This is great!
@dexterpratt2045
@dexterpratt2045 Жыл бұрын
I'd be interested in a similar video to write a program that uses ChatGPT API to generate code and then execute it. Maybe generate unit tests or other validation to cross check it? Catch errors and then ask ChatGPT to debug its generated code?
@betterboss
@betterboss Жыл бұрын
Good stuff!!
@hahfrank
@hahfrank Жыл бұрын
thank you for teaching me. 谢谢你的帮助
@Xohrab
@Xohrab Жыл бұрын
Awesome.. Keep it up.
@alihasnain4045
@alihasnain4045 Жыл бұрын
Amzaing video! Thank you
@dexterpratt2045
@dexterpratt2045 Жыл бұрын
And thanks for this informative video!
@mohamedhatem325
@mohamedhatem325 Жыл бұрын
A great video
@maokue2639
@maokue2639 Жыл бұрын
Thanks for the insightful video, much appreciate. However, I have a question. Can we create a specific product ML using ChatGPT?
@GunturBudiHerwanto
@GunturBudiHerwanto Жыл бұрын
Can you compare the api and pro version in terms of value such as pricing, speed, etc? Thanks
@jobney
@jobney Жыл бұрын
What's the most elegant solution to prevent the accumulated messages from eventually exceeding the max token limit in your final example? In my testing with the web version of chatgpt it seems like it "forgets" very old Assistant outputs before it forgets user inputs. I was able to ask chatGPT what was the first thing I asked and it was correct but it would make an educated guess as to what it said that far back. I was able to just scroll up and double check.
@AP-hv5dh
@AP-hv5dh Жыл бұрын
Great work Frank! Thank you! Did you share the notebook somewhere ?
@ThePyCoach
@ThePyCoach Жыл бұрын
Hi. I just added the link to my GitHub repo. Thanks for letting me know!
@lee155912000
@lee155912000 Жыл бұрын
Does using assistant add to the amount of tokens used per interaction and response? Is it resending past messages to maintain context? Thank you for the video by the way. Very informative.
@prudentia8210
@prudentia8210 Жыл бұрын
I have a quick question, In the assistant mode, how can we create an assistant that we can come back and continue the chat later on? Can we write the responses in the file ? If I close the notebook i presume the assistant is gone?
@AndreLeBlonde1
@AndreLeBlonde1 Жыл бұрын
How to make a chatbot that interacts with potential customers on my website? I am a solar consultant and want the chat to assess, qualify and occasionally close my customers.
@Xohrab
@Xohrab Жыл бұрын
You can do this by fine tuning the model on your own custom data and build the bot.
@helo_world
@helo_world Жыл бұрын
​@@Xohrabcan you tell me how to do that?
@user-zu4se2dl7n
@user-zu4se2dl7n 10 ай бұрын
since this is for chatgtp 3.5 can I do the same for chatgtp 4?
@hydrohasspoken6227
@hydrohasspoken6227 6 ай бұрын
Hi. Does the 40messages/3hours limit apply in Python API?
@thokevinay
@thokevinay Жыл бұрын
Wow! I'm very beginner to Python. I wonder if you could suggest if I could do this under my Telegram Bot? I tried some but I face errors. :/
@novianindy887
@novianindy887 Жыл бұрын
can it remember previous chats/questions?
@zuziabuchnajzer579
@zuziabuchnajzer579 9 ай бұрын
Hi, recently I've created account with gpt4, however I didn't get any response, I got an error "You exceeded your current quota, please check your plan and billing details."
@Corteum
@Corteum Жыл бұрын
What can actually be done with the ChatGPT API in Python?
@pedramsafaeifar8268
@pedramsafaeifar8268 6 ай бұрын
Some changes are needed for this code to run properly as of 1-02-2024: The code below is modified one. ' ' ' import os from openai import OpenAI client = OpenAI(api_key = "key") while True: content = input("User: ") messages.append({"role": "user", "content": content}) completion = client.chat.completions.create( model="gpt-3.5-turbo", messages=messages ) chat_response = completion.choices[0].message.content print(f'ChatGPT: {chat_response}') messages.append({"role": "assistant", "content": chat_response}) ' ' '
@JuanCarlos-ff2rh
@JuanCarlos-ff2rh Жыл бұрын
I got an error=>module 'openai' has no attribute 'ChatCompletion'. Why?
@olalando
@olalando Жыл бұрын
You are likely using an old version of openai try to uninstall then reinstall
@muhammadakmalhusnayain9394
@muhammadakmalhusnayain9394 11 ай бұрын
How to install it?How to get Jupyter? ???
@tonifek123
@tonifek123 7 ай бұрын
I am getting error 429 - You exceeded your current quota, please check your plan and billing details
@fatfurry
@fatfurry Жыл бұрын
i used it 0 times and it said that i exceed my current quota
@sorymillimono5931
@sorymillimono5931 Жыл бұрын
same erros
@VaibhavShewale
@VaibhavShewale Жыл бұрын
is this whisper api?
@cyko_ai
@cyko_ai Жыл бұрын
No this is gpt-3.5-turbo, it is different to whisper api
@brianmagnus2872
@brianmagnus2872 Жыл бұрын
What is difference between GPT-3.5-turbo and whisper?
@numairn
@numairn Жыл бұрын
Is this api paid or free ?
@tensix5481
@tensix5481 Жыл бұрын
"messages=messages" is not good practice
@7elegrama
@7elegrama Жыл бұрын
i don't understand a thing :(
@FredyArg
@FredyArg Жыл бұрын
good morning, great video. getting an error on the api key, it claims it doesnt exist...
Scrape Websites with 1 Prompt using This ChatGPT Plugin
11:05
The PyCoach
Рет қаралды 13 М.
ChatGPT Tutorial for Developers - 38 Ways to 10x Your Productivity
28:13
Programming with Mosh
Рет қаралды 3,5 МЛН
Fast and Furious: New Zealand 🚗
00:29
How Ridiculous
Рет қаралды 45 МЛН
Doing This Instead Of Studying.. 😳
00:12
Jojo Sim
Рет қаралды 24 МЛН
How I'd Learn AI (If I Had to Start Over)
15:04
Thu Vu data analytics
Рет қаралды 768 М.
Creating Custom GPT with Complex Outside Actions Using API Endpoints
21:24
Automate With Chris
Рет қаралды 2,8 М.
Run your own AI (but private)
22:13
NetworkChuck
Рет қаралды 1,3 МЛН
Web Scraping with ChatGPT Mentions is Mind Blowing!
8:42
The PyCoach
Рет қаралды 28 М.
25 Nooby Pandas Coding Mistakes You Should NEVER make.
11:30
Rob Mulla
Рет қаралды 265 М.
ChatGPT Tutorial: How to Use Chat GPT For Beginners 2024
27:51
Charlie Chang
Рет қаралды 3,1 МЛН
ChatGPT Tutorial - A Crash Course on Chat GPT for Beginners
34:05
Adrian Twarog
Рет қаралды 6 МЛН