You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
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: