503 server Error

I”m getting following error. can someone please help me?

huggingface_hub.errors.HfHubHTTPError: 503 Server Error: Service Temporarily Unavailable for url: https://router.huggingface.co/featherless-ai/v1/chat/completions

Below is the code I’m using

## langchain integration package

from langchain_huggingface import ChatHuggingFace, HuggingFaceEndpoint

from dotenv import load_dotenv

from huggingface_hub import login

acces_token_read = XXXXXXXXXXXXXXXXXXXXXXXXXXXXX

login(token = acces_token_read)

load_dotenv()

llm1 = HuggingFaceEndpoint(

repo_id = "TinyLlama/TinyLlama-1.1B-Chat-v1.0", 

task = "text-generation", 

provider = "auto"

)

model = ChatHuggingFace(llm=llm1)

1 Like

Oh… Same here…

# pip install -U huggingface_hub
import os
from huggingface_hub import InferenceClient

client = InferenceClient(
    provider="auto",
    api_key=os.getenv("HF_TOKEN", None)
)

completion = client.chat.completions.create(
    #model="HuggingFaceTB/SmolLM3-3B",
    model="TinyLlama/TinyLlama-1.1B-Chat-v1.0",
    messages=[
        {
            "role": "user",
            "content": "What is the capital of France?"
        }
    ],
)
# huggingface_hub.errors.HfHubHTTPError: 503 Server Error: Service Temporarily Unavailable for url: https://router.huggingface.co/featherless-ai/v1/chat/completions

print(completion.choices[0].message)