forked from phoenix/litellm-mirror
fix(together_ai.py): return empty tgai responses
This commit is contained in:
parent
a09a6f24a4
commit
edb88e31e4
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue