Skip to content

Commit

Permalink
update error message to new hf package (#305)
Browse files Browse the repository at this point in the history
yarn add huggingface not working anymore deprecated.
use yarn add @huggingface/inference` instead.
  • Loading branch information
wizztjh authored Mar 14, 2023
1 parent fa5d4d3 commit 29d5631
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion langchain/src/llms/hf.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export class HuggingFaceInference extends LLM implements HFInput {
return { HfInference };
} catch (e) {
throw new Error(
"Please install huggingface as a dependency with, e.g. `yarn add huggingface`"
"Please install huggingface as a dependency with, e.g. `yarn add @huggingface/inference`"
);
}
}
Expand Down

0 comments on commit 29d5631

Please sign in to comment.