pipelines icon indicating copy to clipboard operation
pipelines copied to clipboard

Disable Pipelines for Task Models

Open darebfh opened this issue 1 year ago • 2 comments

Feature Request

Is your feature request related to a problem? Please describe. I monitor usage statistics using langfuse and the associated pipeline. However, in langfuse also all requests from task models show up and there is no way of filtering these requests from tasks models.

Describe the solution you'd like I suggest adding a checkbox to the "Pipelines" page in the Admin settings called "include task models". This should be deactived by default.

Describe alternatives you've considered It would be possible to set the "Pipelines" parameter with the pipeline definition file to the specific models to monitor. Currently, this parameter is set to "*" as I do not know the identifiers of task model pipelines.

Additional context Add any other context or screenshots about the feature request here.

darebfh avatar Dec 12 '24 12:12 darebfh

That would be good! Thanks for this report!

audrzejq avatar Jan 10 '25 21:01 audrzejq

Maybe you can add to beginning of inlet and outlet some code, like this:

         if "task" in body.get("metadata", {}):
            mtask = body["metadata"]["task"]
            error_message = f"This is task: {mtask}"
            print(f"Skip: {error_message}")
            return body

veleinfobip avatar Feb 12 '25 16:02 veleinfobip