We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6beab33 commit 92d3421Copy full SHA for 92d3421
packages/inference/src/providers/hf-inference.ts
@@ -195,7 +195,7 @@ export class HFInferenceTextGenerationTask extends HFInferenceTask implements Te
195
if (Array.isArray(res) && res.every((x) => "generated_text" in x && typeof x?.generated_text === "string")) {
196
return (res as TextGenerationOutput[])?.[0];
197
}
198
- throw new HfInferenceProviderOutputError("Received malformed response from HF-Inference text-to-speech API: expected Array<{generated_text: string}>");
+ throw new HfInferenceProviderOutputError("Received malformed response from HF-Inference text generation API: expected Array<{generated_text: string}>");
199
200
201
0 commit comments