tool · inferred from evidence
whoami
A command or function used to verify the active Hugging Face token.
- Misleading 401 Unauthorized from smolagents despite valid Hugging Face authentication
The 401 is a red herring: your token is fine, the problem is token precedence. `login()` writes to the HF cache, but the inference client can read `HF_TOKEN` from the environment instead, and if that env var holds an older or different toke