From edb88e31e4cd742e7b4d49011bca874906d3aa76 Mon Sep 17 00:00:00 2001 From: Krrish Dholakia Date: Fri, 15 Dec 2023 10:46:35 -0800 Subject: [PATCH] fix(together_ai.py): return empty tgai responses --- litellm/llms/together_ai.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litellm/llms/together_ai.py b/litellm/llms/together_ai.py index b4964cef4..540dbe202 100644 --- a/litellm/llms/together_ai.py +++ b/litellm/llms/together_ai.py @@ -173,7 +173,7 @@ def completion( message=json.dumps(completion_response["output"]), status_code=response.status_code ) - if len(completion_response["output"]["choices"][0]["text"]) > 0: + if len(completion_response["output"]["choices"][0]["text"]) >= 0: model_response["choices"][0]["message"]["content"] = completion_response["output"]["choices"][0]["text"] ## CALCULATING USAGE