Open thiagotps opened 2 weeks ago
The issue you're experiencing with the @cl.step
decorator not correctly showing inputs for functions with more than one variable might be related to how the inputs are being serialized and displayed in the frontend. The @cl.step
decorator uses the flatten_args_kwargs
function to bind and process multiple input parameters, which should normally handle this scenario correctly [1].
However, if the inputs are not being displayed as expected, it could be due to a bug in the serialization or display logic. Since the expected behavior is to see both parameters correctly serialized and displayed, and you're seeing an empty object for "some_parameter", this might indicate an issue with how the inputs are being captured or rendered.
To address this, you might want to check if there are any updates or patches available for Chainlit that address this issue. Additionally, reviewing the implementation of the flatten_args_kwargs
function and how the inputs are serialized for the frontend might provide further insights into the problem.
To continue talking to Dosu, mention @dosu.
Describe the bug The input shown in the frontend of a function with more than one variable is wrong.
To Reproduce
Expected behavior I was expecting to see
as the logged input.
Screenshots
Desktop (please complete the following information):
Additional context Chainlit 1.2.0