Getting Error when calling openai/gpt-oss-20b from HuggingFaceEndpoint
from langchain_huggingface import HuggingFaceEndpoint
import os
llm = HuggingFaceEndpoint(
repo_id="openai/gpt-oss-20b",
provider="hf-inference", # use HF’s own inference API
max_new_tokens=256,
temperature=0.7,
huggingfacehub_api_token="",
)
response = llm.invoke("Explain quantum mechanics in simple terms.")
print(response)
When we are invoking this then we are getting error saying: Bad Request: The endpoint is paused, ask a maintainer to restart it
How we can use openai/gpt-oss-20b from HuggingFaceEndpoint, can anyone help on this !
Yes i am facing the same error, i think there is some error on the provider side
public async Task GenerateAsync(string prompt)
{
try
{
var textGen = _kernel.GetRequiredService();
var response = await textGen.GetTextContentsAsync(prompt);
return response.FirstOrDefault()?.Text ?? string.Empty;
}
catch (Exception ex)
{
_logger.LogError(ex, "Error generating text with HuggingFace model.");
throw;
}
}
If anyone knows, please tell me
Same issue I am getting
{
"detail": " (Request ID: Root=1-68d25623-630e3490316893cb2419211c;bda731a2-7edb-4906-8b21-a4c2dc397686)\n\nBad request:\nBad Request: The endpoint is paused, ask a maintainer to restart it"
}
If it is resolved please tell :)
Hi All,
This issue is happening due to the models are not available to the public access. to get the access we can request to the team or we can download and use it on local
Thanks & Regards
Deepak K
Hi All,
This issue is happening due to the models are not available to the public access. to get the access we can request to the team or we can download and use it on local
Thanks & Regards
Deepak K