mirror of
https://github.com/tiennm99/litellm.git
synced 2026-07-25 08:19:03 +00:00
fix(together_ai.py): return empty tgai responses
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user