-
Notifications
You must be signed in to change notification settings - Fork 218
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fetch failed #810
Comments
Could be a DNS issue, hard to track down with this stack trace :/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
node v22.0.0
system windows
example:
import { HfInference } from "@huggingface/inference";
const hf = new HfInference('xxx');
const out = await hf.chatCompletion({
model: "mistralai/Mistral-7B-Instruct-v0.2",
messages: [{ role: "user", content: "Complete the this sentence with words one plus one is equal " }],
max_tokens: 100
});
Errors are as follows:
node:internal/deps/undici/undici:12500
Error.captureStackTrace(err, this);
^
TypeError: fetch failed
at node:internal/deps/undici/undici:12500:13
The text was updated successfully, but these errors were encountered: