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

Error code: 404 - {'error': {'message': 'The model gpt-4-turbo does not exist or you do not have access to it.', 'type': 'invalid_request_error', 'param': None, 'code': 'model_not_found'}} #495

Open
SpringBootReactTypescriptTailwindMaster opened this issue Apr 26, 2024 · 10 comments

Comments

@SpringBootReactTypescriptTailwindMaster

Hello

I bought GPT premium, but this bug has appeared. What should I do?

image

image

@clbxr100
Copy link

Did you go into the settings wheel and hit edit and paste your gpt api and save?

@ARajgor
Copy link
Collaborator

ARajgor commented Apr 27, 2024

client = OpenAI(api_key=os.getenv("OPENAI_API_KEY"))
response = client.models.list()

for model in response.data:
    if model.id.startswith("gpt-4"):
        print(model.id)

run this code to check how many models are available for you.

@SpringBootReactTypescriptTailwindMaster

Did you go into the settings wheel and hit edit and paste your gpt api and save?

Yes i saved the settings
image
Maybe i should change the openAI api endpoint ?
image

@SpringBootReactTypescriptTailwindMaster
client = OpenAI(api_key=os.getenv("OPENAI_API_KEY"))
response = client.models.list()

for model in response.data:
    if model.id.startswith("gpt-4"):
        print(model.id)

run this code to check how many models are available for you.

Where i have to add this script ?

image

the last message indicates that **** Settings are not logged ****

@SpringBootReactTypescriptTailwindMaster

i just wanna precise that my version of python is 3.12.2 and not < 3.12

Version's requirements

  • Python >= 3.10 and < 3.12
  • NodeJs >= 18
  • bun

@ARajgor
Copy link
Collaborator

ARajgor commented Apr 29, 2024

client = OpenAI(api_key=os.getenv("OPENAI_API_KEY"))
response = client.models.list()

for model in response.data:
    if model.id.startswith("gpt-4"):
        print(model.id)

run this code to check how many models are available for you.

Where i have to add this script ?

image

the last message indicates that **** Settings are not logged ****

make a test.py, copy this code and run that file (replace your api key).

@SpringBootReactTypescriptTailwindMaster
Copy link
Author

SpringBootReactTypescriptTailwindMaster commented Apr 29, 2024

I did this : setx OPENAI_API_KEY ""

And i runned python test.py but it show nothing :

image

@SpringBootReactTypescriptTailwindMaster

image

@ARajgor
Copy link
Collaborator

ARajgor commented Apr 30, 2024

I did this : setx OPENAI_API_KEY ""

And i runned python test.py but it show nothing :

image

It should be OpenAI(api_key="sk-....")
And print the response.

@SpringBootReactTypescriptTailwindMaster

exactly the same thing.
image

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

3 participants