Build ChatGPT App in Flutter using OpenAI API - Full Course

preview_player
Показать описание
This course covers how to integrate the Rest API in a Flutter application.
The course mostly focuses on REST API integration in Flutter.

Course prerequisites:
Basic knowledge in programming to get started
A basic understanding of Flutter and good knowledge are recommended

Special thank you to Hadi Kachmar for generously sharing his paid Udemy course with us for free.

► Social Media

► Timestamps
00:00 - Intro
02:02 - App Overview
03:32 - Source code on GitHub
04:19 - Add the required packages
09:05 - Setting up the application
19:05 - Start building the chat screen
30:18 - Build the chat widget
40:14 - Implement the ModalBottomSheet
43:11 - Create the dropDownButton and optimize the previous code
51:10 - Explain the API documentation and test it using Postman
59:05 - Write a Function to get the model response
01:09:36 - Implement the Models model class Enhance the function And error handling
01:17:24 - Start displaying all Models using FutureBuilder
01:24:29 - Implement the Models provider
01:34:24 - Implement the chats model and allow the user to send a message
01:49:42 - Start display the chats on the screen
01:57:55 - Scroll the chat List to the end
02:00:36 - Animate the bot response like ChatGPT
02:04:54 - Implement the chat provider
02:12:28 - Show the error, and not allow the user to send an empty message
02:17:11 - Get a better response, and avoid spamming

Thanks for watching!
Make sure to like + Subscribe For More!
Рекомендации по теме
Комментарии
Автор

Thanks for hosting my course on your channel 🙏.

codingwithhadi
Автор

This is an awesome tutorial!
Fresh and clean.

Thank you a lot for making it free for us!

captcha
Автор

Great course man!!!! I think that the url for the models were change since you post your curse. Now, differents post url are required for each model.

higorgustavobarbosadasilva
Автор

This course is really helpful, thanks a lot, sir

KALYAN
Автор

Very well explained. Thank you so much !

niksrivastava
Автор

You always impress me 😍😍, my favorite teacher, I will not let your work go to waste, one day I will meet you, thanks my teacher 💙

SADIQALOTMI
Автор

How would it be possible for the answers created in constants.dart to be answered by the bot? is posible?

brandond
Автор

Hi, extraordinaty tutorial i really like it! Can you please add save chats and other features? Thanks.

thereal
Автор

For those who are getting the error "You exceeded your current quota, please check your plan and billing details" it's probably because you have not received free credits from OpenAI, as these free credits are dependent on the phone number of the country you are in

samwinpereira
Автор

hello my bro
I get this error when I want to use the app. Can you explain it to me about it?
(error HttpException: You exceeded your current quota, please check your plan and billing details.)

webdenj
Автор

Hello! How did you surpassed the "You exceeded your current quota, please check your plan and billing details" error?
I think now we have to pay to use the API, correct?

dmintzer
Автор

very useful content my friend, thank you 🤙

muhammedakbey
Автор

will it remember past conversation like chatGPT?

OnlyVocals-Nomusic
Автор

how do i continue chatting on the same query(topic) with the AI?

zingmaishinglai
Автор

If someone has a font error, please use
if > 0) {
for (int index = 0; index < index++) {
String text =
List<int> bytes = text.codeUnits;
Utf8Decoder decoder = Utf8Decoder();
String utf8String = decoder.convert(bytes);
log(utf8String);
chatList.add(
ChatModel(
msg: utf8String,
chatIndex: 1,
),
);
}
}
thay cho
if > 0) {

chatList = List.generate(
jsonResponse['choices'].length,
(index) => ChatModel(
msg: jsonResponse['choices'][index]['text'],
chatIndex: 1,
),
);
}

hoanganhle
Автор

Why do you use Material and Padding separately when you can use just a Container? If you're only going to use the color property, wouldn't it be better to use a ColoredBox? Sorry for my ignorance, you left me with these doubts.

diexgo
Автор

hello since I followed this tutorial, but I am stuck at the level of " log("error: $error"); " in the function "ApiService.getModels" where I have this error "_TypeError (type 'Null' is not a subtype of type 'String') "I've tried everything I know what's wrong. I receive the list of models but when it comes to displaying them I get this error. help me please . timeline: 1:21:51

clichyblazin
Автор

How can the program be modified to support streaming? Thanks!

richardchui
Автор

1:04:44 Why is this message appearing?
" flutter: {error: {message: you must provide a model parameter, type: invalid_request_error, param: null, code: null}} "

JamesChoi-xdji
Автор

Thank you for this amazing course bro.

However, at tutorial 01:49:42 - (Start display the chats on the screen)

I keep get wrong and random answers from the bot when I asked questions.
Please help🙏

martinedemklutsey