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 0a7e86f commit 3bc91cbCopy full SHA for 3bc91cb
libs/langchain/tests/unit_tests/chat_models/test_base.py
@@ -101,7 +101,12 @@ def test_init_chat_model_huggingface() -> None:
101
)
102
assert isinstance(llm2, ChatHuggingFace)
103
assert llm2.llm is not None
104
- except Exception as e:
+ except (
105
+ ImportError,
106
+ OSError,
107
+ RuntimeError,
108
+ ValueError,
109
+ ) as e:
110
# If model download fails in CI, skip the test rather than failing
111
# The important part is that the code path doesn't raise ValidationError
112
# about missing 'llm' field, which was the original bug
0 commit comments