huggingface / huggingface/agents-course
[UPDATE] On DUMMY AGENT LIBRARY > Serverless API section - 401 occurs if the HF Token is not set for inference calls
Open
documentation
- Dominant language
- MDX
- Stars
- 32.6k
- Forks
- 2.3k
- PR merge metrics
- No merged PRs in 30d
Description
On serverless API on the test when we try to reach Llama-3.2-3B, if the token is not properly set to welcome inferences, it does not work : we get a 401.
I would suggest to add this information on the prerequisite of the token in the comment just above
```
## You need a token from https://hf.co/settings/tokens **and set it with the property "Make calls to inference providers" on.** If you run this on Google Colab, you can set it up in the "settings" tab under "secrets". Make sure to call it "HF_TOKEN"
os.environ["HF_TOKEN"]="hf_xxxxxxxxxxxxxx"
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.