Тёмный

ChatGPT Android App: Simple Steps with Jetpack Compose 

Reza Devs
Подписаться 1,1 тыс.
Просмотров 2,3 тыс.
50% 1

Unlock the power of conversational AI by building your very own ChatGPT Android app using Jetpack Compose!
In this step-by-step tutorial, we'll guide you through how you can use ChatGPT to build an android app. We'll cover essential topics such as setting up the development environment, implementing the ChatGPT API, and designing a responsive UI with Jetpack Compose. By the end of this video, you'll have a fully functional chat app that harnesses the capabilities of ChatGPT, allowing users to experience seamless, interactive conversations with AI.
No prior experience with Jetpack Compose is required, Let's get started!"

Опубликовано:

 

30 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 10   
@RezaDevs
@RezaDevs Год назад
Source Code: github.com/moallemi/ChatGPT-basic-android-client
@shivamuttam9868
@shivamuttam9868 Год назад
Can you provide English caption
@_johncameronfernandez
@_johncameronfernandez Год назад
hello can u plss answer me in lazy column why it's viewmodel.messages.reversed()? if it has already reverseLayout = true
@RezaDevs
@RezaDevs Год назад
Nice question! Actually reverseLayout = true, reverse the direction of scrolling and layout. When true, items are laid out in the reverse order. but! in this case you will see the first message at the bottom of the screen and we usually want the last message in chat conversations to be the last item in list. so we use viewmodel.messages.reversed(). Try with this simple code snippet to see what happens of you enable or disable the reverseLayout = true and reversed the list items: LazyColumn( reverseLayout = true, // Enable reverse layout to make the list start from the bottom ) { items( List(100) { "$it" } .reversed(), // Reverse the list to make the first item at the bottom ) { item -> Text( modifier = Modifier .fillMaxWidth() .border(BorderStroke(1.dp, Color.Gray)) .padding(20.dp), text = item, textAlign = TextAlign.Center, ) } }
@_johncameronfernandez
@_johncameronfernandez Год назад
@@RezaDevs I ask that question because when I implement a loading indicator instead it go downward like scrolling to bottom it's to top it's like just the behavior when u don't have messages. reversed()?so how I can like implement the loading indicator to be like the behavior of the messages?
@_johncameronfernandez
@_johncameronfernandez Год назад
@@RezaDevs plss how can I also do that to loading animation I already have?
@RezaDevs
@RezaDevs Год назад
I do not know how you implemented to loading. You can achieve this by sth like this: Box { LazyColumn( reverseLayout = true, ) { } CircularProgressIndicator( modifier = Modifier .align(Alignment.BottomCenter) // or .align(Alignment.TopCenter) .padding(bottom = 16.dp), // or .padding(top = 16.dp) ) }
@germenwong
@germenwong 10 месяцев назад
The error message returned by the API is a quota issue. How should I handle it
@RezaDevs
@RezaDevs 9 месяцев назад
I hope this can help you: platform.openai.com/docs/guides/rate-limits/error-mitigation
@jopadjr
@jopadjr Год назад
28th...Thanks !!!
Далее
ДЕНЬ УЧИТЕЛЯ В ШКОЛЕ
01:00
Просмотров 2 млн
How to build a ChatBot Android App using OpenAI API
14:35
How to win a argument
9:28
Просмотров 576 тыс.
How to Make a Stop Watch With Compose Desktop
21:51
Просмотров 38 тыс.
ДЕНЬ УЧИТЕЛЯ В ШКОЛЕ
01:00
Просмотров 2 млн