huggingface / huggingface/agents-course

[HANDS-ON BUG] [HANDS-ON BUG] HfApiModel error in 2.1 final quiz

Open
#335 1 comment 1 reaction 0 assignees View on GitHub
hands-on-bug
Dominant language
MDX
Stars
32.6k
Forks
2.3k
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**

I declare like this:
```python
model = HfApiModel(model_id='https://pflgm2locj2t89co.us-east-1.aws.endpoints.huggingface.cloud/')
```

Is that wrong? It was flagged as a wrong answer, see screenshot below.

**To Reproduce**
Take the quiz https://huggingface.co/spaces/agents-course/unit2_smolagents_quiz

**Screenshots**

![Image](https://github.com/user-attachments/assets/f3222523-6144-4434-9502-a1942e3f7d38)

**Additional context**
There is an example [here](https://huggingface.co/spaces/agents-course/First_agent_template/blob/main/app.py#L39-L40)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.