docs(unit1): warn about API cost risk when sharing a public Space - #741
Open
ammar-iitm wants to merge 1 commit into
Open
ammar-iitm wants to merge 1 commit into
ammar-iitm wants to merge 1 commit into
Conversation
Fixes huggingface#604. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BRoX7i7x45LeTw8EWuvY1L
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes #604.
In Unit 1's "Let's Create Our First Agent Using smolagents" tutorial, learners add their Hugging Face token as an
HF_TOKENsecret to their duplicated Space. If that Space is made public, every visitor's use of the demo triggers API calls authenticated with the owner's token — which can unexpectedly rack up costs for the owner if the token is tied to a paid Inference Provider or paid plan. This wasn't called out anywhere near the secret-setup steps.Changes
HF_TOKENsecret setup steps inunits/en/unit1/tutorial.mdx, explaining that a public Space's API usage is billed to the owner's token and to keep an eye on usage if on a paid plan.Testing
Documentation-only change (English unit1 content). No code/tests affected.
🤖 Generated with Claude Code
https://claude.ai/code/session_01BRoX7i7x45LeTw8EWuvY1L