In this video, we’ll learn to build a ChatBOT using Python with ChatGPT API from OpenAI
1. Learn how to get OpenAI Key Token
2. Two different methods of using ChatGPT API in Python
3. Building a Python ChatGPT ChatBOT with openai Python package
4. Using ChatGPT API Completions End point
5. How to change ChatGPT API Parameters like temperature
6. Summary
Code and Demo – https://github.com/amrrs/chatgpt-api-python
❤️ If you want to support the channel ❤️
Support here:
Patreon – https://www.patreon.com/1littlecoder/
Ko-Fi – https://ko-fi.com/1littlecoder
reply = response["choices"][0]["message"]["content"]
TypeError: 'NoneType' object is not subscriptable
simply adding a bool instead of infinite loop will make code more efficient.
Hi there! Thanks for the video, its been very helpful, currently using it in a project im working on. I was wondering if you could tell me if paying for the api key gives faster response times… for chatgpt api? Would appreciate your response. At the moment im using the free trial.
Fantastic tutorial!
wow you know how to explain
This is really good. Thanks so much for the thorough explanation. A question that perhaps you have already answered.
Is there a way to fine tuned CHAT gpt let's say from content or text you have created? Like your thesis or something?
Thanks
Please make a video with method 1, but with more settings like temperature ! I would be so happy.
I want to know about youtube where we connect through API in Data studio
Great work! Waiting for the tutorial about Gradio and ChatGPT.
Really clear explanation, thanks a lot
Another question, where would you store the "messages" if you were doing a Web App?
Thanks for the excellent video. However, I was able to install openai on Google Colab, but when I try to set the key, it gives me errors.
NameError Traceback (most recent call last)
<ipython-input-6-f5912bef3725> in <module>
—-> 1 openai.api_key = 'sk-…'
NameError: name 'openai' is not defined
When i use free version of Open AI chat GPT then they display an error. RateLimitError: You exceeded your current quota, please check your plan and billing details. Let me know we will create a chatbot with premium version of chatgpt?
thanks for your contribution, you the best!!
Never used the api still showing this error "RateLimitError: You exceeded your current quota, please check your plan and billing details" any solution
How to using the model in webApp like using flask
I've never used this API before, but even so I'm getting the message :"You exceeded your current quota, please check your plan and billing details."
Somebody had this issue?
This is amazing. I want to do this but slightly different. Im trying to get the AI to become an NPC complete with a backstory and rules of engagement with players. do you have any advice to add about 5 pages worth of backstory?
Excellent video as always. A few things I’m curious about though, using the API endpoint how would you retain chat history like you did using the While True loop? Also if building an application for multiple users how would you do it in such a way that the ChatGPTs memory is specific to a certain user?
Thank you. Very clear explanation.
This is great! Would love to know how to chain API calls for Whisper and GPT together:
For example:
A Ui where a user speaks, whisper transcribers what they say , then their transcription is summarized/interpreted with a pre-made GPT prompt, and the user can see the summarized/remixed output?
You always put out some of the best content out on YouTube. Thanks for sharing your knowledge of AI with the community!
Thank you so much for putting this together! — Very helpful!
One noob question: is it possible at this point of time to train chatGPT on your own data using their API?
Thank you so much, can you teach us how to integrate with whatsapp and telegram?
That would be nice to add a functionality where you can insert a PDF.
Great!! Thank you!
Using requests module, how do you reference a particular chat. Say the conversation about Gary Kasparov vs about something else? I saw there's a chat ID in the json response. How do you reference that?
thanks for the tutorial !!!
You are Always on the tip of this spear! 👌 👍 Look forward to your next gangbuster vid?
How about a Mashup between this newAPI and ControlNet!
Thoughts?
Looks like for fine-tuning you can't make use of the 10x cheaper endpoint even though the model is the same.
Very well timed and nicely explained. Wishlist : please share how to add langchain/gpt index/pinecone 🤞
Now with control over temperature, you could repeat your hullicination querries with temperature of 0 and compare 🙂
If possible, how to set up with gradio ?
Excellent tutorial as usual…super up to date content.
Cool!
How easy/hard (!) is it to embed these chatbots into a website? Thank you for your work!!
Thank you!
Thank you so much, your tutorials are so helpful. Can you pls make a tutorial on how to fine tune this model. Let's say i want to provide the model with several documents. I want it to learn from it so that i can do QA on it.
Thank you! Incredibly detailed and clear.
Great video. I'd be grateful if you made one. How can we fine-tune ChatGPT for our own data?
Thanks bro for being so fast in announcing ai news. Already last night after ur video about chatgpt i jumped on it and made a quick chatbot
Commenting before even watching the video because I want to thank you for all your effort!!
Man I love your work. Thank you.