[Feature] OpenAI Function Calling (#1224)

This commit is contained in:
UnMonsieur
2024-02-12 02:58:11 +01:00
committed by GitHub
parent 38e212c721
commit 41bd258b93
31 changed files with 259 additions and 213 deletions

View File

@@ -22,7 +22,7 @@ def test_get_llm_model_answer(vertexai_llm):
def test_get_answer_with_warning(vertexai_llm, caplog):
with patch("langchain.chat_models.ChatVertexAI") as mock_chat:
with patch("langchain_community.chat_models.ChatVertexAI") as mock_chat:
mock_chat_instance = mock_chat.return_value
mock_chat_instance.return_value = MagicMock(content="Test Response")
@@ -39,7 +39,7 @@ def test_get_answer_with_warning(vertexai_llm, caplog):
def test_get_answer_no_warning(vertexai_llm, caplog):
with patch("langchain.chat_models.ChatVertexAI") as mock_chat:
with patch("langchain_community.chat_models.ChatVertexAI") as mock_chat:
mock_chat_instance = mock_chat.return_value
mock_chat_instance.return_value = MagicMock(content="Test Response")