From f6c84f1aa62385b9956d06d04194c76e63cc7341 Mon Sep 17 00:00:00 2001 From: Krrish Dholakia Date: Sat, 11 May 2024 19:51:29 -0700 Subject: [PATCH] fix(anthropic.py): compatibility fix --- litellm/llms/anthropic.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/litellm/llms/anthropic.py b/litellm/llms/anthropic.py index 5b5ed3f831e..d9726ec5130 100644 --- a/litellm/llms/anthropic.py +++ b/litellm/llms/anthropic.py @@ -254,13 +254,13 @@ class AnthropicChatCompletion(BaseLLM): def process_response( self, model: str, - response: requests.Response | httpx.Response, + response: Union[requests.Response, httpx.Response], model_response: ModelResponse, stream: bool, logging_obj: litellm.utils.Logging, optional_params: dict, api_key: str, - data: dict | str, + data: Union[dict, str], messages: List, print_verbose, encoding,