mirror of
https://github.com/hwchase17/langchain.git
synced 2026-06-09 10:17:00 +00:00
feat(model-profiles): distribute data across packages (#34024)
This commit is contained in:
@@ -325,3 +325,15 @@ def test_inheritance_with_empty_llm() -> None:
|
||||
# relevant attrs
|
||||
assert chat.max_tokens is None
|
||||
assert chat.temperature is None
|
||||
|
||||
|
||||
def test_profile() -> None:
|
||||
empty_llm = Mock(spec=HuggingFaceEndpoint)
|
||||
empty_llm.repo_id = "test/model"
|
||||
empty_llm.model = "test/model"
|
||||
|
||||
model = ChatHuggingFace(
|
||||
model_id="moonshotai/Kimi-K2-Instruct-0905",
|
||||
llm=empty_llm,
|
||||
)
|
||||
assert model.profile
|
||||
|
||||
Reference in New Issue
Block a user