mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-08 22:42:05 +00:00
community[patch]: deprecate all HF classes (#22444)
This commit is contained in:
@@ -20,7 +20,11 @@ VALID_TASKS_DICT = {
|
||||
}
|
||||
|
||||
|
||||
@deprecated("0.0.21", removal="0.3.0", alternative="HuggingFaceEndpoint")
|
||||
@deprecated(
|
||||
"0.0.21",
|
||||
removal="0.3.0",
|
||||
alternative_import="from langchain_huggingface import HuggingFaceEndpoint",
|
||||
)
|
||||
class HuggingFaceHub(LLM):
|
||||
"""HuggingFaceHub models.
|
||||
! This class is deprecated, you should use HuggingFaceEndpoint instead.
|
||||
|
Reference in New Issue
Block a user