Error by the code of the reasoning with images lecture

When I run the provided example code on my computer, I get following error:

NotFoundError: Error code: 404 - {‘error’: {‘message’: ‘The model o1 does not exist or you do not have access to it.’, ‘type’: ‘invalid_request_error’, ‘param’: None, ‘code’: ‘model_not_found’}}

Hi @Ram_Kumar_Koppu,

In order to run the notebooks on your own computer, you need to get your own OpenAI API key.

This is why you are getting this error.

Best,
Mubsi

I have my own key and I could run earlier chapters code locally with o1-mini, the issue only with the o1 model code.

In that case, I would suggest to check your OpenAI account to see if you have access to o1 model.

1 Like

Hi @Ram_Kumar_Koppu, I had the same issue with one of the notebooks running locally, I’ve checked available models on my Openai account and got it - o1-preview. I suppose you can use the same. I want to warn you that in some cases it was used with OUTPUT_SCHEMA, which is not supported by o1-preview yet, so I’ve used gpt4o to with OUTPUT_SCHEMA to convert output from o1-preview in JSON format, hope this hint’s will help you.

1 Like