From 364526d0bc98dea036187d4229d0c18f4755ca10 Mon Sep 17 00:00:00 2001 From: Krrish Dholakia Date: Sat, 30 Mar 2024 20:22:48 -0700 Subject: [PATCH] test: fix test --- litellm/tests/test_custom_callback_input.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/litellm/tests/test_custom_callback_input.py b/litellm/tests/test_custom_callback_input.py index 4296f188d..afaf7a54c 100644 --- a/litellm/tests/test_custom_callback_input.py +++ b/litellm/tests/test_custom_callback_input.py @@ -253,7 +253,12 @@ class CompletionCustomHandler( assert isinstance(end_time, datetime) ## RESPONSE OBJECT assert isinstance( - response_obj, (litellm.ModelResponse, litellm.EmbeddingResponse) + response_obj, + ( + litellm.ModelResponse, + litellm.EmbeddingResponse, + litellm.TextCompletionResponse, + ), ) ## KWARGS assert isinstance(kwargs["model"], str)