From 8b021fc4cd29570d0a88f8719df6061c08c600e4 Mon Sep 17 00:00:00 2001 From: David Leen Date: Fri, 12 Jan 2024 12:32:57 +0100 Subject: [PATCH] [bug] unbound variable in bedrock note: the code was written as `json.dumps({})` even though it is more verbose in order to facilitate easier refactoring in the future fixes #1428 --- litellm/llms/bedrock.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/litellm/llms/bedrock.py b/litellm/llms/bedrock.py index 617964a749..4d2fc9a63a 100644 --- a/litellm/llms/bedrock.py +++ b/litellm/llms/bedrock.py @@ -498,6 +498,8 @@ def completion( "textGenerationConfig": inference_params, } ) + else: + data = json.dumps({}) ## COMPLETION CALL accept = "application/json"