lunary-ai / lunary-py

Lunary AI Python Client (Analytics, monitoring and evaluations for GenAI apps)
https://lunary.ai/docs/py
19 stars 15 forks source link

fix: false values in output are removed #36

Closed haitrr closed 6 months ago

haitrr commented 6 months ago

Fix output values that are False are not tracked because it's removed while parsing. Result:

image

While in the log

[chain/end] [1:chain:RunnableSequence > 6:chain:RunnableParallel<......] [1.03s] Exiting Chain run with output:
{
  "output": false
}

Use if raw_output is None instead of if raw_output After:

image
hughcrt commented 6 months ago

Hi, thanks for you contribution!