Explorar el Código

fix: pipelines outlet

Timothy Jaeryang Baek hace 4 meses
padre
commit
e25b082162
Se han modificado 1 ficheros con 3 adiciones y 7 borrados
  1. 3 7
      backend/open_webui/routers/pipelines.py

+ 3 - 7
backend/open_webui/routers/pipelines.py

@@ -124,18 +124,14 @@ def process_pipeline_outlet_filter(request, payload, user, models):
                     f"{url}/{filter['id']}/filter/outlet",
                     f"{url}/{filter['id']}/filter/outlet",
                     headers={"Authorization": f"Bearer {key}"},
                     headers={"Authorization": f"Bearer {key}"},
                     json={
                     json={
-                        "user": {
-                            "id": user.id,
-                            "name": user.name,
-                            "email": user.email,
-                            "role": user.role,
-                        },
-                        "body": data,
+                        "user": user,
+                        "body": payload,
                     },
                     },
                 )
                 )
 
 
                 r.raise_for_status()
                 r.raise_for_status()
                 data = r.json()
                 data = r.json()
+                payload = data
         except Exception as e:
         except Exception as e:
             # Handle connection error here
             # Handle connection error here
             print(f"Connection error: {e}")
             print(f"Connection error: {e}")