multiple: fix xfailed signatures (#28597)

This commit is contained in:
Erick Friis
2024-12-06 15:39:47 -08:00
committed by GitHub
parent b7c2029e84
commit 0eb7ab65f1
4 changed files with 32 additions and 14 deletions

View File

@@ -4,6 +4,7 @@ from typing import Tuple, Type
import pytest
from langchain_core.language_models import BaseChatModel
from langchain_core.tools import BaseTool
from langchain_tests.unit_tests import ChatModelUnitTests
from langchain_openai import AzureChatOpenAI
@@ -23,8 +24,10 @@ class TestOpenAIStandard(ChatModelUnitTests):
}
@pytest.mark.xfail(reason="AzureOpenAI does not support tool_choice='any'")
def test_bind_tool_pydantic(self, model: BaseChatModel) -> None:
super().test_bind_tool_pydantic(model)
def test_bind_tool_pydantic(
self, model: BaseChatModel, my_adder_tool: BaseTool
) -> None:
super().test_bind_tool_pydantic(model, my_adder_tool)
@property
def init_from_env_params(self) -> Tuple[dict, dict, dict]: