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:
ccurme
2025-02-28 13:56:05 -05:00
committed by GitHub
parent 9e6ffd1264
commit f8ed5007ea
4 changed files with 18 additions and 1 deletions

View File

@@ -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: