Error: Provider 'featherless-ai' not supported

Hi, I’m new and ignore too much. I’m trying to run in collab “Building Agents That Use Code”. WHen running the third cell (after sign in):

  1. from smolagents import CodeAgent, DuckDuckGoSearchTool, InferenceClientModel
  2. agent = CodeAgent(tools=[DuckDuckGoSearchTool()], model=InferenceClientModel())
  3. agent.run(“Search for the best music recommendations for a party at the Wayne’s mansion.”)
    I get the following error:

Error in generating model output:
Provider ‘featherless-ai’ not supported. Available values: ‘auto’ or any provider from [‘black-forest-labs’,
‘cerebras’, ‘cohere’, ‘fal-ai’, ‘fireworks-ai’, ‘hf-inference’, ‘hyperbolic’, ‘nebius’, ‘novita’, ‘nscale’,
‘openai’, ‘replicate’, ‘sambanova’, ‘together’].Passing ‘auto’ (default value) will automatically select the first
provider available for the model, sorted by the user’s order in Hugging Face – The AI community building the future..

1 Like

I think you probably forgot to run pip install in the first cell, causing the huggingface_hub library to be outdated, and also because of a specification change in smolagents. It’s probably a library version issue.

from smolagents import CodeAgent, WebSearchTool, InferenceClientModel

agent = CodeAgent(tools=[WebSearchTool()], model=InferenceClientModel())

agent.run("Search for the best music recommendations for a party at the Wayne's mansion.")

Hmm…? featherless-ai seems just supported now.

!pip install -U huggingface_hub[hf_xet] smolagents

this similar error was fixed by some of the HF team: “Very sorry about the inconvenience, we fixed this issue server-side, it should be all good now!
I’m closing this issue (and the PR) but let us know if you see any other unexpected behavior.”
But no instructions are provided (Or that I can follow)

1 Like

I run all the cells.

1 Like

Now it works, with the line
“!pip install duckduckgo-search”.
The error changed before this works.
Now I have the error that I saw in others posts, about payment required.
Thanks for your help.

1 Like