Skip to content

The agent engineering platform.

Update rwkv.py import error (#10293)

ParamdeepSinghShorthillsAI3cc242b5917f
diff --git a/libs/langchain/langchain/llms/rwkv.py b/libs/langchain/langchain/llms/rwkv.py
index bb54c9d5de..8072b2b91b 100644
--- a/libs/langchain/langchain/llms/rwkv.py
+++ b/libs/langchain/langchain/llms/rwkv.py
@@ -121,7 +121,7 @@ class RWKV(LLM, BaseModel):
values["pipeline"] = PIPELINE(values["client"], values["tokens_path"])
except ImportError:
- raise ValueError(
+ raise ImportError(
"Could not import rwkv python package. "
"Please install it with `pip install rwkv`."
)