fix(together_ai.py): return empty tgai responses

This commit is contained in:
Krrish Dholakia 2023-12-15 10:46:35 -08:00
parent a09a6f24a4
commit edb88e31e4

View file

@ -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