Invalid credentials in Authorization header

Dear Team,

I am currently enrolled in the Agents course and encountered an error while attempting to run the Smol_Agents notebook. Specifically, I received an error when using model=HfApiModel() with my free Hugging Face API key.

Could you please assist me in resolving this issue?
++++++++++++++++++++++++++++++++++++++++++++++++++
Error:
Invalid credentials in Authorization header
++++++++++++++++++++++++++++++++++++++++++++++++