test: fix test

This commit is contained in:
Krrish Dholakia
2024-03-30 20:22:48 -07:00
committed by Ishaan Jaff
parent 17cabf013c
commit aebb0e489c
+6 -1
View File
@@ -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)