Conversation
Revision of the pipeline, clean and fixed some issues and v3 requirements.
Updated author and date information in the Langfuse filter pipeline.
|
Hi @rgaricano . I tried applying your changes to my variant of the function filter (open-webui/functions#11) but it performed worse as some traces were not traced at all or token counts were wrong. Where did you find that it has to be named "usage_details" instead of just "usage"? |
|
@YetheSamartaka, Btw, In my PR I removed the |
|
@YetheSamartaka, Maybe when streaming or when some error occurs during generation? I updated the PR for handle these cases, also I restored the total field (just in case). |
Modified the usage_details logic to handle the cases where only one of input_tokens or output_tokens are None or missing in certain scenarios.
|
Thank you |
|
Hi. Perhaps you would want to take a look at this PR of mine as I have the Langfuse as a function. The pipeline itself is not always working correctly, mainly the issue is when user closes the chat window while the chat is being generated, the Langfuse will never get the data properly. |
Revision of the pipeline, clean and fixed some issues.