From b8818bb563d8487c0bb7c014a5b76f7491439e26 Mon Sep 17 00:00:00 2001 From: Mason Daugherty Date: Sun, 4 Oct 2026 21:21:19 +0000 Subject: [PATCH] test(classic): use typed model names in integration fixtures Co-authored-by: open-swe[bot] --- .../integration_tests/chains/openai_functions/test_openapi.py | 2 +- .../retrievers/document_compressors/test_listwise_rerank.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/langchain/tests/integration_tests/chains/openai_functions/test_openapi.py b/libs/langchain/tests/integration_tests/chains/openai_functions/test_openapi.py index 83ea0ca3aa..e757968801 100644 --- a/libs/langchain/tests/integration_tests/chains/openai_functions/test_openapi.py +++ b/libs/langchain/tests/integration_tests/chains/openai_functions/test_openapi.py @@ -33,7 +33,7 @@ api_spec = { def test_openai_openapi_chain() -> None: from langchain_openai import ChatOpenAI - llm = ChatOpenAI(model="gpt-4o-mini", temperature=0) + llm = ChatOpenAI(model_name="gpt-4o-mini", temperature=0) chain = get_openapi_chain(json.dumps(api_spec), llm) output = chain.invoke({"query": "Fetch the top two posts."}) assert len(output["response"]) == 2 diff --git a/libs/langchain/tests/integration_tests/retrievers/document_compressors/test_listwise_rerank.py b/libs/langchain/tests/integration_tests/retrievers/document_compressors/test_listwise_rerank.py index 7dd8d2c31f..605aef4501 100644 --- a/libs/langchain/tests/integration_tests/retrievers/document_compressors/test_listwise_rerank.py +++ b/libs/langchain/tests/integration_tests/retrievers/document_compressors/test_listwise_rerank.py @@ -17,7 +17,7 @@ def test_list_rerank() -> None: ] reranker = LLMListwiseRerank.from_llm( - llm=ChatOpenAI(model="gpt-4.1-mini"), + llm=ChatOpenAI(model_name="gpt-4.1-mini"), top_n=3, ) compressed_docs = reranker.compress_documents(documents, "Who is steve")