C1M3 Agentic AI Graded Lab Error

My unit test cases are all passed however assignment submission is failing with below error

Failed test case: generate_research_report_with_tools raised BadRequestError: Error code: 400 - {‘error’: {‘message’: ‘you must provide a model parameter’, ‘type’: ‘invalid_request_error’, ‘param’: None, ‘code’: None}}. Expected: no exception, but got: Error code: 400 - {‘error’: {‘message’: ‘you must provide a model parameter’, ‘type’: ‘invalid_request_error’, ‘param’: None, ‘code’: None}}.

Hi laideepu25,

The test cases used when you submit a notebook are different from the unit test cases. So passing the unit test cases does not assure passing the submission test cases.
The error messsage points to a missing model parameter. See if you can find where a model parameter may be missing in your code.
Good luck!

Hi @reinoudbosch : I have passed the model parameter at the correct place in the Chatcompletion call however still this error is coming up. Please guide as i am unable to resolve this

Hi Laideepu25,

Did you save the notebook before submitting?

No i did not save it

Try to save it and then submit. Then the current content of the assignment will be passed to the tests at submission.

Thanks heaps. This resolved my issue. Strange my other assignments worked fine without saving as well.

Great! Happy to see that it worked. Enjoy the rest of the course!

FYI:
The auto-save feature is highly unreliable. Always save your work before grading.