[UPDATE] Clarify API Cost Risks when using Secrets in Public Hugging Face Spaces (Unit 1)
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 76/100
- Issue type
- Documentation
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- huggingface
- Domain
- documentation
Research direction
Start with the Unit 1 tutorial page linked in the issue, especially the step where the Hugging Face Space Secret is added. Verify the cost implications of public Spaces using an owner's paid API token, then add a concise warning immediately after that step; done means students can clearly understand the potential for unexpected charges.
Written by the indexing model from the issue text.
Description
-
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.
-
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.
- Dominant language
- MDX
- Stars
- 32.7k
- Forks
- 2.3k
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from huggingface/agents-course
-
hands-on-bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
huggingface/agents-course#747 ·
-
documentation
Difficulty 1/5 Under an hour Newbie friendliness 72/100
huggingface/agents-course#746 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
huggingface/agents-course#738 · 5 comments · 1 reaction ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
huggingface/agents-course#733 · 6 comments ·
-
documentation
Difficulty 1/5 Under an hour Newbie friendliness 78/100
huggingface/agents-course#641 · 1 comment ·
All issues in huggingface/agents-course
Similar issues
-
user-reported
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
Kong/developer.konghq.com#7316 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
HarperFast/skills#96 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
infinispan/infinispan#18150 ·
-
bug triage:deciding
Difficulty 1/5 Under an hour Newbie friendliness 88/100
open-telemetry/otel-arrow#4132 ·
-
Ecosystem: ClawMetry — the Qwen Code reader is now free and open source (follow-up to #9294 / #9338) Opencategory/integration priority/P3 scope/documentation status/ready-for-human type/feature-request
Difficulty 1/5 Under an hour Newbie friendliness 84/100