compose-chatgpt-kotlin-android-chatbot
compose-chatgpt-kotlin-android-chatbot copied to clipboard
Possible issue when GPT API key does not have access to GPT 4
Hi,
This method looks like a legacy. Unfortunately with my API key the "model": "gpt-3.5-turbo" does not work.
I had to change the Model to the following below... Source : https://platform.openai.com/docs/api-reference/completions/create
'{
"model": "gpt-3.5-turbo-instruct",
"prompt": "Say this is a test",
"max_tokens": 7,
"temperature": 0,
"stream": true
}'
As I have been using my API key in my own project works fine with the following request. The recommended request for GPT 3.5 https://platform.openai.com/docs/api-reference/chat/create
"model": "gpt-3.5-turbo",
"messages": [
{
"role": "system",
"content": "You are a helpful assistant."
},
{
"role": "user",
"content": "Hello!"
}
],
"stream": true
So the default model should be "model": "gpt-3.5-turbo-instruct" Can someone with GPT4 access test this? Thanks
Thanks! I was getting the same error with gpt-3.5-turbo, but gpt-3.5-turbo-instruct worked. gpt-4, as I have, is working too.
Thanks for testing.
Hello, after receiving the build from the program, when I ask a question to the artificial intelligence, my program crashes. What should be done?
Hello, after receiving the build from the program, when I ask a question to the artificial intelligence, my program crashes. What should be done?
Check what error message you have in your logcat.
The internet must be on, otherwise the software will not work and it will kick me out. I turn on the internet, I ask a question, it gives this error
Samsung S24 U
On Tue, 26 Mar 2024, 16:17 Peter Szollar, @.***> wrote:
Hello, after receiving the build from the program, when I ask a question to the artificial intelligence, my program crashes. What should be done?
Check what error message you have in your logcat.
— Reply to this email directly, view it on GitHub https://github.com/lambiengcode/compose-chatgpt-kotlin-android-chatbot/issues/17#issuecomment-2020336780, or unsubscribe https://github.com/notifications/unsubscribe-auth/BGX66KHNIQ4RS5OFHP7P7B3Y2FN3JAVCNFSM6AAAAAA5OUC53WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMRQGMZTMNZYGA . You are receiving this because you commented.Message ID: <lambiengcode/compose-chatgpt-kotlin-android-chatbot/issues/17/2020336780@ github.com>
to be fair I have not done anything on this repo for a long time. So I have no idea what the owner of the repo has changed and too busy with my work to look into it. As far as I remember if you do not have the api key accessing to GPT4 or 3 it could through an error like this. Sorry
@sollarp Thank you for your support. @mehrdadpasiyann We neglected this project for quite a while, because of some factors, I think it's small enough for a reference project. In addition, I see that there are still success messages on the firebase database, some are fail because wrong api key
. If you use firebase in this repo, I think just a reason is wrong api key and if you change your own firebase, let's check indexes
tab on firebase, you need create index
for this project.
Thank you
Samsung S24 U
On Tue, 26 Mar 2024, 17:25 Kai Dao, @.***> wrote:
@sollarp https://github.com/sollarp Thank you for your support. @mehrdadpasiyann https://github.com/mehrdadpasiyann We neglected this project for quite a while, because of some factors, I think it's small enough for a reference project. In addition, I see that there are still success messages on the firebase database, some are fail because wrong api key. If you use firebase in this repo, I think just a reason is wrong api key and if you change your own firebase, let's check indexes tab on firebase, you need create index for this project.
— Reply to this email directly, view it on GitHub https://github.com/lambiengcode/compose-chatgpt-kotlin-android-chatbot/issues/17#issuecomment-2020496521, or unsubscribe https://github.com/notifications/unsubscribe-auth/BGX66KEXWDVB72GTOS6NJ7DY2F46TAVCNFSM6AAAAAA5OUC53WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMRQGQ4TMNJSGE . You are receiving this because you were mentioned.Message ID: <lambiengcode/compose-chatgpt-kotlin-android-chatbot/issues/17/2020496521@ github.com>