[Feature] OpenAI Function Calling (#1224)
This commit is contained in:
@@ -28,7 +28,7 @@ def test_get_llm_model_answer(azure_openai_llm):
|
||||
|
||||
|
||||
def test_get_answer(azure_openai_llm):
|
||||
with patch("langchain.chat_models.AzureChatOpenAI") as mock_chat:
|
||||
with patch("langchain_community.chat_models.AzureChatOpenAI") as mock_chat:
|
||||
mock_chat_instance = mock_chat.return_value
|
||||
mock_chat_instance.return_value = MagicMock(content="Test Response")
|
||||
|
||||
@@ -60,7 +60,7 @@ def test_get_messages(azure_openai_llm):
|
||||
|
||||
|
||||
def test_get_answer_top_p_is_provided(azure_openai_llm, caplog):
|
||||
with patch("langchain.chat_models.AzureChatOpenAI") as mock_chat:
|
||||
with patch("langchain_community.chat_models.AzureChatOpenAI") as mock_chat:
|
||||
mock_chat_instance = mock_chat.return_value
|
||||
mock_chat_instance.return_value = MagicMock(content="Test Response")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user