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
|
response_obj, litellm.ModelResponse
|
||||||
):
|
):
|
||||||
input = prompt
|
input = prompt
|
||||||
output = response_obj["choices"][0]["message"]
|
output = response_obj["choices"][0]["message"].json()
|
||||||
if isinstance(output, litellm.Message):
|
|
||||||
output = output.json()
|
|
||||||
elif response_obj is not None and isinstance(
|
elif response_obj is not None and isinstance(
|
||||||
response_obj, litellm.TextCompletionResponse
|
response_obj, litellm.TextCompletionResponse
|
||||||
):
|
):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue