From e892fc99a39f5d000fc4e0f2f3120eab6ebc4c03 Mon Sep 17 00:00:00 2001 From: Krrish Dholakia Date: Tue, 12 Mar 2024 19:25:05 -0700 Subject: [PATCH] fix(anthropic.py): concurrent request fix --- litellm/llms/anthropic.py | 1 + 1 file changed, 1 insertion(+) diff --git a/litellm/llms/anthropic.py b/litellm/llms/anthropic.py index 6efe512e1d..9ccc46e1a3 100644 --- a/litellm/llms/anthropic.py +++ b/litellm/llms/anthropic.py @@ -271,6 +271,7 @@ def completion( 0 ].finish_reason streaming_model_response.choices[0].index = model_response.choices[0].index + streaming_model_response.choices = [litellm.utils.StreamingChoices()] _tool_calls = [] print_verbose( f"type of model_response.choices[0]: {type(model_response.choices[0])}"