skydoves / chatgpt-android Goto Github PK
View Code? Open in Web Editor NEW📲 ChatGPT Android demonstrates a Chatbot application using OpenAI's chat API on Android with Stream Chat SDK for Compose.
License: Apache License 2.0
📲 ChatGPT Android demonstrates a Chatbot application using OpenAI's chat API on Android with Stream Chat SDK for Compose.
License: Apache License 2.0
Replies from ChatGPT are appearing under users, as if user sent
Fresh build pulled 2-6-23
ClearCache...alOperator com.skydoves.chatgpt D (DefaultDispatcher-worker-3:104966) clear cache & histories for Unauthorized and Forbidden
ChatGPTMessageWorker com.skydoves.chatgpt D (DefaultDispatcher-worker-5:104979) worker failure!
WM-WorkerWrapper com.skydoves.chatgpt I Worker result FAILURE for Work [ id=bb92cf25-2f5b-4c57-b6e8-e6d78a8c6574, tags={ com.skydoves.chatgpt.feature.chat.worker.ChatGPTMessageWorker } ]
Toast com.skydoves.chatgpt D show: caller = com.skydoves.chatgpt.core.network.operator.ClearCacheGlobalOperator.onError$lambda$4:68
Toast com.skydoves.chatgpt I show: focusDisplayId = 0, isFocusInDesktop = false mCustomDisplayId=-1 isDexDualMode=false
Toast com.skydoves.chatgpt I show: isActivityContext = false
ChatActivity com.skydoves.chatgpt D (main:2) gpt message worker failed: error code: 1020
--> POST https://chat.openai.com/backend-api/conversation
Content-Type: application/json
Content-Length: 289
accept: text/event-stream
accept-encoding: gzip, deflate, br
accept-language: en-GB,en-US;q=0.9,en;q=0.8
referer: https://chat.openai.com/chat
user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.1 Safari/605.1.15
Authorization: Bearer
{"action":"next","messages":[{"id":"eb0dd397-ebe9-4b52-8db4-0d077a5d3a5d","role":"user","content":{"content_type":"text","parts":["Hi"]}}],"conversation_id":"9a6c65bb-46af-4a83-9906-9a8db06666ba","parent_message_id":"b4ebadcb-a33a-446d-86ab-eb5ad76f3fd5","model":"text-davinci-002-render"}
--> END POST (289-byte body)
<-- 403 https://chat.openai.com/backend-api/conversation
Help me OwO
The app didn't close when I pressed the back button on the home page.
When logging in using Google account, Google disallowed the app because of user agent issue.
I discovered that, this app create new chat on ChatGPT website when you type to ChatGPT from this app. Please do something with this becouse i dont wanna everytime delete useless chats
According to their account information configured local.properties, while the error reported after the ChatGPTService Headers modified the user-agent, but still keep returning errorBody
Support login with mail & password
or
Add Edittext for input parameters
Why: I don't think anyone likes the fact that every time the cf_clearance expires, they have to re-sign the app
Issue: Seeing an error when trying to log in using my email address. This might be due to the fact that my email was tied to Google Auth. I used the 'Forgot password' process with my Google email, verified the email, reset the password, and see this error when attempting to login.
Message:
Oops!
You tried signing in as "[email protected]" using a password, which is not the authentication method you used during sign up. Try again using the authentication method you used during sign up.
(error=identity_provider_mismatch
)
As it is stated on chat.openai.com,
Capabilities: Remembers what user said earlier in the conversation
ChatGPT wrapped in chatgpt-android.apk
does not remember what was said before. As if each message sent by the user started a new conversation.
after load up login and sign up not there
{"detail":{"message":"We're currently processing too many requests. Please try again later."}}: Something went wrong. Please re-launch or re-install this app.
Do I ?
I checked the price, very very expensive, I can't afford it.
Hello Skydoves
after signup with new email (not gmail/microsoft) and bypass without email/phone number verification we got error
see picture joined:
thank you for your great work
Hello,
I recognized that the app won't work on Android 13.
After 20-30 times of screen rotation and switched between dark and light mode, the login buttons come up.
I was able to login and afterwards, I can only see a spinning circle and a write button on the bottom right, but nothing happens afterwards.
2022-12-16 00:42:52.536 27836-27836 Chat:Client com.skydoves.chatgpt D (main:2) Plugins found: io.getstream.chat.android.offline.plugin.internal.OfflinePlugin
2022-12-16 00:42:52.536 27836-27836 Chat:DistinctApi com.skydoves.chatgpt D (main:2) [queryChannel] channelType: messaging, channelId: 459d3cdd-4adc-4c01-b1ac-d9dd2ec332a9, uniqueKey: 38521839
2022-12-16 00:42:52.537 27836-28331 Chat:Client com.skydoves.chatgpt V (DefaultDispatcher-worker-2:1730) [createChannel] #doOnStart; plugin: io.getstream.chat.android.offline.plugin.internal.OfflinePlugin
2022-12-16 00:42:52.543 27836-28331 Chat:ChannelRepository com.skydoves.chatgpt V (DefaultDispatcher-worker-2:1730) [insertChannel] entity: ChannelEntity(lastMessageId: null, lastMessageAt: null, cid: messaging:459d3cdd-4adc-4c01-b1ac-d9dd2ec332a9)
2022-12-16 00:42:52.543 27836-28331 Chat:ChannelRepository com.skydoves.chatgpt V (DefaultDispatcher-worker-2:1730) [updateCache] channels.size: 1
2022-12-16 00:42:52.547 27836-28457 Chat:Http com.skydoves.chatgpt I (OkHttp https://chat.stream-io-api.com/...:1743) --> POST https://chat.stream-io-api.com/channels/messaging/459d3cdd-4adc-4c01-b1ac-d9dd2ec332a9/query?connection_id=639899f6-0a0b-3231-0000-0000000bbb39&api_key=m7nnw8qj8syb (209-byte body)
2022-12-16 00:42:52.547 27836-28457 Chat:Http com.skydoves.chatgpt I (OkHttp https://chat.stream-io-api.com/...:1743)
2022-12-16 00:42:52.547 27836-28457 Chat:Http com.skydoves.chatgpt I (OkHttp https://chat.stream-io-api.com/...:1743) {"state":false,"watch":false,"presence":false,"messages":{},"watchers":{},"members":{},"data":{"name":"ChatGPT 97971","members":["4b865670-5be3-4ad5-8d61-a8a3ffdaffdc","70ef052a-da88-4451-af92-99f7ed335a71"]}}
2022-12-16 00:42:52.547 27836-28457 Chat:Http com.skydoves.chatgpt I (OkHttp https://chat.stream-io-api.com/...:1743) --> END POST (209-byte body)
2022-12-16 00:42:52.548 27836-28457 CURL com.skydoves.chatgpt I (OkHttp https://chat.stream-io-api.com/...:1743) curl -X POST -H "Content-Type:application/json" -H "stream-auth-type:jwt" -H "Accept-Encoding:application/gzip" -H "X-Stream-Client:stream-chat-android-compose-5.11.9|os=Android 9|api_version=28|device_vendor=Google|device_model=AOSP on IA Emulator|offline_enabled=true" -H "Cache-Control:no-cache" -H "Authorization:eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjoiNGI4NjU2NzAtNWJlMy00YWQ1LThkNjEtYThhM2ZmZGFmZmRjIn0=.devtoken" -d '{"state":false,"watch":false,"presence":false,"messages":{},"watchers":{},"members":{},"data":{"name":"ChatGPT 97971","members":["4b865670-5be3-4ad5-8d61-a8a3ffdaffdc","70ef052a-da88-4451-af92-99f7ed335a71"]}}' "https://chat.stream-io-api.com/channels/messaging/459d3cdd-4adc-4c01-b1ac-d9dd2ec332a9/query?connection_id=639899f6-0a0b-3231-0000-0000000bbb39&api_key=m7nnw8qj8syb"
2022-12-16 00:42:52.594 27836-28457 Chat:Http com.skydoves.chatgpt I (OkHttp https://chat.stream-io-api.com/...:1743) <-- 400 https://chat.stream-io-api.com/channels/messaging/459d3cdd-4adc-4c01-b1ac-d9dd2ec332a9/query?connection_id=639899f6-0a0b-3231-0000-0000000bbb39&api_key=m7nnw8qj8syb (46ms, 360-byte body)
2022-12-16 00:42:52.594 27836-28457 Chat:Http com.skydoves.chatgpt I (OkHttp https://chat.stream-io-api.com/...:1743) <-- END HTTP (360-byte body omitted)
2022-12-16 00:42:52.595 27836-28331 Chat:Client com.skydoves.chatgpt V (DefaultDispatcher-worker-2:1730) [createChannel] #doOnResult; plugin: io.getstream.chat.android.offline.plugin.internal.OfflinePlugin
2022-12-16 00:42:52.597 27836-28127 Chat:ChannelRepository com.skydoves.chatgpt V (DefaultDispatcher-worker-1:1694) [updateCache] channels.size: 0
2022-12-16 00:42:52.602 27836-27876 Chat:ChannelRepository com.skydoves.chatgpt V (DefaultDispatcher-worker-5:1631) [insertChannel] entity: ChannelEntity(lastMessageId: null, lastMessageAt: null, cid: messaging:459d3cdd-4adc-4c01-b1ac-d9dd2ec332a9)
2022-12-16 00:42:52.602 27836-27876 Chat:ChannelRepository com.skydoves.chatgpt V (DefaultDispatcher-worker-5:1631) [updateCache] channels.size: 1
2022-12-16 00:42:52.684 27836-27874 EGL_emulation com.skydoves.chatgpt D eglMakeCurrent: 0xe2d85b80: ver 2 0 (tinfo 0xcc1f7230)
2022-12-16 00:42:52.688 27836-27874 EGL_emulation com.skydoves.chatgpt D eglMakeCurrent: 0xe2d85b80: ver 2 0 (tinfo 0xcc1f7230)
It may be chatgpt-android.apk
.
Thank you
Response: Something went wrong. Please check out your session and conversation id is valid.
This is the error I am presented with when attempting to sign in with my Google account using the released app.
There's a few chrome extensions that have some of these features. I'm trying to implement it w/ WebViews+Flutter but not really a mobile dev. This app is pretty sleek so would be cool to add these features.
Help me UwU
Hello I want to rename my chats with chatgpt
thank you for this amazing implementation
If people can talk to this app and it will read the reply from chatGPT, won't it be more fun and easy to use ?
Error :
java.lang.RuntimeException: Unable to get provider androidx.startup.InitializationProvider: androidx.startup.StartupException: java.lang.IllegalStateException: Default FirebaseApp is not initialized in this process com.skydoves.chatgpt. Make sure to call FirebaseApp.initializeApp(Context) first.
at android.app.ActivityThread.installProvider(ActivityThread.java:7849)
at android.app.ActivityThread.installContentProviders(ActivityThread.java:7355)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:7083)
at android.app.ActivityThread.access$1700(ActivityThread.java:277)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2170)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loopOnce(Looper.java:211)
at android.os.Looper.loop(Looper.java:300)
at android.app.ActivityThread.main(ActivityThread.java:8285)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:576)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1074)
Caused by: androidx.startup.StartupException: java.lang.IllegalStateException: Default FirebaseApp is not initialized in this process com.skydoves.chatgpt. Make sure to call FirebaseApp.initializeApp(Context) first.
at androidx.startup.AppInitializer.doInitialize(AppInitializer.java:187)
at androidx.startup.AppInitializer.discoverAndInitialize(AppInitializer.java:238)
at androidx.startup.AppInitializer.discoverAndInitialize(AppInitializer.java:206)
at androidx.startup.InitializationProvider.onCreate(InitializationProvider.java:45)
at android.content.ContentProvider.attachInfo(ContentProvider.java:2421)
at android.content.ContentProvider.attachInfo(ContentProvider.java:2386)
at android.app.ActivityThread.installProvider(ActivityThread.java:7844)
... 11 more
Caused by: java.lang.IllegalStateException: Default FirebaseApp is not initialized in this process com.skydoves.chatgpt. Make sure to call FirebaseApp.initializeApp(Context) first.
at com.google.firebase.FirebaseApp.getInstance(FirebaseApp.java:186)
at com.google.firebase.messaging.FirebaseMessaging.getInstance(FirebaseMessaging.java:137)
at io.getstream.chat.android.pushprovider.firebase.FirebasePushDeviceGenerator.<init>(FirebasePushDeviceGenerator.kt:32)
at com.skydoves.chatgpt.feature.chat.initializer.StreamChatInitializer.createNotificationConfig(StreamChatInitializer.kt:89)
at com.skydoves.chatgpt.feature.chat.initializer.StreamChatInitializer.create(StreamChatInitializer.kt:68)
at com.skydoves.chatgpt.feature.chat.initializer.StreamChatInitializer.create(StreamChatInitializer.kt:42)
at androidx.startup.AppInitializer.doInitialize(AppInitializer.java:180)
... 17 more
Please try to add this to F-Droid or IzzyOnDroid so that we can maintain app up to date.
Issue: Error when attenpting to sign in with Google (Error 403: disallowed_useragent
)
Message:
Access blocked: Authorization Error
You can’t sign in from this screen because this app doesn’t comply with Google’s secure browsers policy. If this app has a website, you can open a web browser and try signing in from there.
You can let the app developer know that this app doesn’t comply with Google’s secure browsers policy.
Error 403: disallowed_useragent
Suddenly getting error: "Something went wrong. Please check out your session and conversation id is valid"
Something went wrong. Place re-lunch or re-install this app!
java.lang.RuntimeException: Unable to get provider androidx.startup.InitializationProvider: androidx.startup.StartupException: java.lang.IllegalStateException: apiKey is not defined in Builder
at android.app.ActivityThread.installProvider(ActivityThread.java:7849)
at android.app.ActivityThread.installContentProviders(ActivityThread.java:7355)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:7083)
at android.app.ActivityThread.access$1700(ActivityThread.java:277)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2170)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loopOnce(Looper.java:211)
at android.os.Looper.loop(Looper.java:300)
at android.app.ActivityThread.main(ActivityThread.java:8285)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:576)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1074)
Caused by: androidx.startup.StartupException: java.lang.IllegalStateException: apiKey is not defined in Builder
at androidx.startup.AppInitializer.doInitialize(AppInitializer.java:187)
at androidx.startup.AppInitializer.discoverAndInitialize(AppInitializer.java:238)
at androidx.startup.AppInitializer.discoverAndInitialize(AppInitializer.java:206)
at androidx.startup.InitializationProvider.onCreate(InitializationProvider.java:45)
at android.content.ContentProvider.attachInfo(ContentProvider.java:2421)
at android.content.ContentProvider.attachInfo(ContentProvider.java:2386)
at android.app.ActivityThread.installProvider(ActivityThread.java:7844)
... 11 more
Caused by: java.lang.IllegalStateException: apiKey is not defined in Builder
at io.getstream.chat.android.client.ChatClient$Builder.internalBuild(ChatClient.kt:2937)
at io.getstream.chat.android.client.ChatClient$ChatClientBuilder.build(ChatClient.kt:3038)
at io.getstream.chat.android.client.ChatClient$Builder.build(ChatClient.kt:2925)
at com.skydoves.chatgpt.feature.chat.initializer.StreamChatInitializer.create(StreamChatInitializer.kt:65)
at com.skydoves.chatgpt.feature.chat.initializer.StreamChatInitializer.create(StreamChatInitializer.kt:37)
at androidx.startup.AppInitializer.doInitialize(AppInitializer.java:180)
... 17 more
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.