stitionai / devika

Devika is an Agentic AI Software Engineer that can understand high-level human instructions, break them down into steps, research relevant information, and write code to achieve the given objective. Devika aims to be a competitive open-source alternative to Devin by Cognition AI.
MIT License
18.27k stars 2.38k forks source link

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 4 months ago

SpringBootReactTypescriptTailwindMaster commented 4 months ago

Hello

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

image

image

clbxr100 commented 4 months ago

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

ARajgor commented 4 months ago

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 commented 4 months ago

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 commented 4 months ago
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 commented 4 months ago

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

Version's requirements

ARajgor commented 4 months ago
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 commented 4 months ago

I did this : setx OPENAI_API_KEY ""

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

image

SpringBootReactTypescriptTailwindMaster commented 4 months ago

image

ARajgor commented 4 months ago

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 commented 4 months ago

exactly the same thing. image