Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possible issue when GPT API key does not have access to GPT 4 #17

Open
sollarp opened this issue Oct 1, 2023 · 8 comments
Open

Possible issue when GPT API key does not have access to GPT 4 #17

sollarp opened this issue Oct 1, 2023 · 8 comments

Comments

@sollarp
Copy link
Contributor

sollarp commented Oct 1, 2023

Hi,

This method looks like a legacy.
Unfortunately with my API key the "model": "gpt-3.5-turbo" does not work.

Screenshot_20

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

@joaocarlosleme
Copy link

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.

joaocarlosleme added a commit to joaocarlosleme/compose-chatgpt-kotlin-android-chatbot that referenced this issue Oct 29, 2023
@sollarp
Copy link
Contributor Author

sollarp commented Oct 29, 2023

Thanks for testing.

@mehrdadpasiyann
Copy link

Hello, after receiving the build from the program, when I ask a question to the artificial intelligence, my program crashes. What should be done?

@sollarp
Copy link
Contributor Author

sollarp commented Mar 26, 2024

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.

@mehrdadpasiyann
Copy link

mehrdadpasiyann commented Mar 26, 2024 via email

@sollarp
Copy link
Contributor Author

sollarp commented Mar 26, 2024

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

@lambiengcode
Copy link
Owner

@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.

@mehrdadpasiyann
Copy link

mehrdadpasiyann commented Mar 26, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants
@joaocarlosleme @lambiengcode @sollarp @mehrdadpasiyann and others