How to create ChatGPT android app | Full Tutorial | 2024

preview_player
Показать описание
#chatgpt #android #tutorial
In this video, You will learn how to build an Android app like ChatGPT using the OpenAI API and OkHttp library. With this app, you'll be able to integrate the power of OpenAI's language model into your own Android applications.
We'll start by building the user interface for our chat app, including a text input field and a list view to display the chat history.
And we will setup the OkHttp library and using it to make requests to the OpenAI API. You'll learn how to format your requests and parse the responses to get the information you need.
Finally, we'll bring everything together by adding the code to send requests to the OpenAI API and display the responses in the chat history.

If you want to support
☕ Buy me a coffee!"☕

By the end of this video, you'll have a fully-functional Android app that uses OpenAI's language model to answer user questions. Whether you're a seasoned Android developer or just starting out, this video has something for you.
TIMESTAMPS:
App demo 0:00
Create Project 01:14
Internet Permission 01:58
Design ChatScreen UI 02:15
ChatMessage Item UI 07:07
Creating References 10:39
RecylerView 13:00
Add send Functionality 22:10
OpenAI API Documentation 25:18
OkHTTP library implementation 26:25
Call API using okHTTP 27:14
Integrate OpenAI API 33:14
Testing API 36:00
Add Typing Function 36:38
Final App 37:37

Watch this part 2 video where we have fixed common issue and using gpt-3.5-turbo
---------------------------------------------------------------------------------------------------------------
GITHUB LINK :
---------------------------------------------------------------------------------------------------------------
OpenAI API Series:
---------------------------------------------------------------------------------------------------------------
ACCESS THIS IMPORTANT PLAYLIST
---------------------------------------------------------------------------------------------------------------

If you have any queries or doubt Comment below,I will reply.
And Dont forget to Subscribe for more Stuffs.
------------------------------------------------------------------------------------------------------------------------------------------------------
Android Development Course for beginners HINDI

Android Full Project App Development Playlist:

Racing Game Development in Visual Studio Full Playlist:
------------------------------------------------------------------------------------------------------------------------------------------------------
Like Our Facebook Page for regular Updates:
------------------------------------------------------------------------------------------------------------------------------------------------------

INSTAGRAM :
Рекомендации по теме
Комментарии
Автор

Thank you. This was one of the best videos on youtube to learn not only android development but how to build on openai.

arvpande
Автор

Well done walking through the code. Especially how you write classes and point out the error when you need to implement metods. Thanks!

hmauroy
Автор

Thank you very much!!! I made it by following your steps one by one. But the horrible thing is that when I talk to gpt, it says it is a real person instead of chatbot, lol.

diras
Автор

It's Amazing, I created my own chat GPT 🎉🎉🎉🎉🎉

learnjavaprogramming
Автор

Thank you so much bro, i am always flowing you, and your coding skill is very impressive . I learn lot of thinks from you . again thank you .

sologamingbd
Автор

Thanks. Thanks to you, I made an application that works flawlessly for the first time. Looking forward to your new works.
By the way, Indians' English is more understandable. At least for me.

ahmetruzgar
Автор

Sir, while running your code from GitHub it's showing internal okhttp error, please tell me how to fix it

maithreyatm
Автор

I have no words to thank you brother....keep the good work up.god bless youu <3. Love from SRI LANKA

mtwkmln
Автор

Thank you 💞💞💞💞 it's really amazing 🤩


I love they way you teach 🤗

devabdul
Автор

Thank you! This is amazing! Guys, the API changed a little bit but with minor changes I still managed to get it running 🥰

luckydevil
Автор

👍👍👍really thank you for share that. I am beginner in Java, and that help me very so much

luc
Автор

Works really well, would be nice if you could select the message to copy it from chat gpt though :)

softtop
Автор

at 10:05 the margin start is in the center of the box left chat box, why is this?

WinterRoses
Автор

excellent video very helpful. thank you so much. God bless!

divafly
Автор

Thankyou, you video heplped me so much for hackathon, we have made the project and it is one of the unique feature in our app

CareerHirings
Автор

great tutorial....but could you change the input? Instead of typing a question....use speech as input?

darinpaller
Автор

Thank you so much, very useful tutorial.
If anyone faces the issue of "Only the original thread that created a view hierarchy can touch its views", you need to edit the the function which sets the output in chat to incorporate 'runOnUiThread' method. Copy paste the error in ChatGPT itself, it will suggest the exact fix :-)
Thank you for the tutorial, once again!!

priyas
Автор

Nice Tutorial! Thanks for sharing this.

whogashaga
Автор

i am getting an error broo .."failed due to okhttp body response can i rectify..respond me as soon as possible broo

PraveenKumar-icto
Автор

Hello, thanks I was able to implement following your guidance but I have challenge for my app to memorize such that the conversation follow relatedly.

katspro-techug