mirror of
https://github.com/hwchase17/langchain.git
synced 2026-06-09 10:17:00 +00:00
anthropic, mistral: return model_name in response metadata (#30048)
Took a "census" of models supported by init_chat_model-- of those that return model names in response metadata, these were the only two that had it keyed under `"model"` instead of `"model_name"`.
This commit is contained in:
@@ -87,6 +87,7 @@ async def test_ainvoke() -> None:
|
||||
|
||||
result = await llm.ainvoke("I'm Pickle Rick", config={"tags": ["foo"]})
|
||||
assert isinstance(result.content, str)
|
||||
assert "model_name" in result.response_metadata
|
||||
|
||||
|
||||
def test_invoke() -> None:
|
||||
|
||||
Reference in New Issue
Block a user