mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-27 19:54:13 +00:00
revered the patch so that the fix can be applied in the main place
This commit is contained in:
parent
c45085b728
commit
8eb842dcf5
1 changed files with 1 additions and 3 deletions
|
@ -135,9 +135,7 @@ class LangFuseLogger:
|
|||
response_obj, litellm.ModelResponse
|
||||
):
|
||||
input = prompt
|
||||
output = response_obj["choices"][0]["message"]
|
||||
if isinstance(output, litellm.Message):
|
||||
output = output.json()
|
||||
output = response_obj["choices"][0]["message"].json()
|
||||
elif response_obj is not None and isinstance(
|
||||
response_obj, litellm.TextCompletionResponse
|
||||
):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue