From 8e5e99533b77ae66390885a1e0c40fba5f7b651a Mon Sep 17 00:00:00 2001 From: Ishaan Jaff Date: Sat, 6 Apr 2024 17:34:23 -0700 Subject: [PATCH] async streaming for anthropic --- litellm/main.py | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/litellm/main.py b/litellm/main.py index b7e5a3ba921..75382b8ce3c 100644 --- a/litellm/main.py +++ b/litellm/main.py @@ -1197,19 +1197,6 @@ def completion( logging_obj=logging, headers=headers, ) - if ( - "stream" in optional_params - and optional_params["stream"] == True - and not isinstance(response, CustomStreamWrapper) - ): - # don't try to access stream object, - response = CustomStreamWrapper( - response, - model, - custom_llm_provider="anthropic", - logging_obj=logging, - ) - if optional_params.get("stream", False) or acompletion == True: ## LOGGING logging.post_call(