huggingface / huggingface/agents-course
[UPDATE] Clarify API Cost Risks when using Secrets in Public Hugging Face Spaces (Unit 1)
- Dominant language
- MDX
- Stars
- 32.6k
- Forks
- 2.3k
- PR merge metrics
- No merged PRs in 30d
Description
1. If you want to add a full section or a new unit, **please describe precisely what you want to add before starting to write it** so that we can review the idea, validate it or not, and guide you through the writing process.
2. If there's a typo, you can directly open a PR.
Hi team,
I was going through **Unit 1** in the section **"Let’s Create Our First Agent Using smolagents,"** (specifically, this page: https://huggingface.co/learn/agents-course/unit1/tutorial) where we set up our Hugging Face Space and add our API token as a **Secret** for the agent to use.
I had a quick question/suggestion about the cost implications when a Space is made public.
My understanding is that if a user makes their Space public, every person who interacts with that demo will trigger API calls that are authenticated using **the owner's token**.
If that token is for a paid service (like OpenAI or a paid Hugging Face Inference tier), that public usage could potentially start **racking up costs for the owner** of the token.
If this understanding is correct, I think it would be really helpful to add a small note or warning right after the step where we add the secret. It would be a great way to prevent students from getting any surprise bills down the road.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.