langchain
e529939c - feat(llms): support more tasks in HuggingFaceHub LLM and remove deprecated dep (#14406)

Commit
2 years ago
feat(llms): support more tasks in HuggingFaceHub LLM and remove deprecated dep (#14406) - **Description:** this PR upgrades the `HuggingFaceHub` LLM: * support more tasks (`translation` and `conversational`) * replaced the deprecated `InferenceApi` with `InferenceClient` * adjusted the overall logic to use the "recommended" model for each task when no model is provided, and vice-versa. - **Tag mainter(s)**: @baskaryan @hwchase17
Author
Parents
Loading