huggingface / huggingface/mcp-course

Help with deployed instances accessing the inference models with API_KEYS

Open
#79 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
MDX
Stars
918
Forks
255
PR merge metrics
No merged PRs in 30d

Description

I see the following error when following the guide - https://huggingface.co/learn/mcp-course/unit2/gradio-client

smolagents.utils.AgentGenerationError: Error in generating model output:
You must provide an api_key to work with together API or log in with huggingface-cli login.

I had created a PR to address some more small things, was planning to add it there, if someone can figure this part out.
PR - https://github.com/huggingface/mcp-course/pull/78

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by following the Gradio client guide at the linked Hugging Face course page and reproduce the API key error for a deployed instance. Then inspect PR #78 for the related documentation changes. Done means the guide explains authentication clearly and deployed instances can access the inference models without this error.

Written by the indexing model from the issue text.

Assessment

Tech stack
huggingface
Domain
ai, documentation
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.