From e8dd4ca17062dbbc10e09c308194645fefeb25b1 Mon Sep 17 00:00:00 2001 From: Michael Berna <7750743+therealmichaelberna@users.noreply.github.com> Date: Wed, 14 Jan 2026 16:06:43 -0500 Subject: [PATCH] Change pipe method to async in documentation Updated to follow recommended best practices --- docs/features/plugin/functions/pipe.mdx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/features/plugin/functions/pipe.mdx b/docs/features/plugin/functions/pipe.mdx index 5898da2d..52c573da 100644 --- a/docs/features/plugin/functions/pipe.mdx +++ b/docs/features/plugin/functions/pipe.mdx @@ -35,7 +35,7 @@ class Pipe: def __init__(self): self.valves = self.Valves() - def pipe(self, body: dict): + async def pipe(self, body: dict): # Logic goes here print(self.valves, body) # This will print the configuration options and the input body return "Hello, World!" @@ -73,7 +73,7 @@ def __init__(self): - **Purpose**: Processes the input data using your custom logic and returns the result. ```python -def pipe(self, body: dict): +async def pipe(self, body: dict): # Logic goes here print(self.valves, body) # This will print the configuration options and the input body return "Hello, World!" @@ -106,7 +106,7 @@ class Pipe: {"id": "model_id_3", "name": "model_3"}, ] - def pipe(self, body: dict): + async def pipe(self, body: dict): # Logic goes here print(self.valves, body) # Prints the configuration options and the input body model = body.get("model", "")