From 257c1fe33b01857d99c24b9e9ca64996df8d0151 Mon Sep 17 00:00:00 2001 From: Sanjeed <40694326+sanjeed5@users.noreply.github.com> Date: Tue, 21 Jan 2025 15:48:45 +0530 Subject: [PATCH] Update guided_tour.md (#287) --- docs/source/en/guided_tour.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/source/en/guided_tour.md b/docs/source/en/guided_tour.md index ee91553..9105aa8 100644 --- a/docs/source/en/guided_tour.md +++ b/docs/source/en/guided_tour.md @@ -37,14 +37,14 @@ Once you have these two arguments, `tools` and `model`, you can create an agent Hugging Face API is free to use without a token, but then it will have a rate limitation. -To access gated models or rise your rate limits with a PRO account, you need to set the environment variable `HF_TOKEN` or pass `token` variable upon initialization of `HfApiModel`. +To access gated models or rise your rate limits with a PRO account, you need to set the environment variable `HF_TOKEN` or pass `token` variable upon initialization of `HfApiModel`. You can get your token from your [settings page](https://huggingface.co/settings/tokens) ```python from smolagents import CodeAgent, HfApiModel -model_id = "meta-llama/Llama-3.3-70B-Instruct" +model_id = "meta-llama/Llama-3.3-70B-Instruct" -model = HfApiModel(model_id=model_id, token="") +model = HfApiModel(model_id=model_id, token="") # You can choose to not pass any model_id to HfApiModel to use a default free model agent = CodeAgent(tools=[], model=model, add_base_tools=True) agent.run(