Agentic AI, M3 Assignemnt - model error: The model `openai:gpt-4o` does not exist or you do not have access to it

Hello,
In Agentic AI, M3 assignment an error is triggered using
`openai:gpt-4o` as model.

Failed test case: generate_research_report_with_tools raised NotFoundError: Error code: 404 - {‘error’: {‘message’: ‘The model `openai:gpt-4o` does not exist or you do not have access to it.’, ‘type’: ‘invalid_request_error’, ‘param’: None, ‘code’: ‘model_not_found’}}.
Expected: no exception
Got: Error code: 404 - {‘error’: {‘message’: ‘The model `openai:gpt-4o` does not exist or you do not have access to it.’, ‘type’: ‘invalid_request_error’, ‘param’: None, ‘code’: ‘model_not_found’}}

Any ideas of what is wrong?
Thank you!

It seems to me a typo error. Replace

model =`openai:gpt-4o`

with:

model="openai:gpt-4o"

Happy coding!

1 Like

Thank you for your answer. it ended up being just gpt-4o because it was inside an assignment controlled environment.
Thanks again.
-H

Thanks for your updated. Glad you 've solved the issue!

Happy coding!