mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-16 11:57:51 +01:00
fix: pipelines
This commit is contained in:
@@ -315,8 +315,12 @@ class PipelineMiddleware(BaseHTTPMiddleware):
|
||||
else:
|
||||
pass
|
||||
|
||||
if "chat_id" in data:
|
||||
del data["chat_id"]
|
||||
if "pipeline" not in app.state.MODELS[model_id]:
|
||||
if "chat_id" in data:
|
||||
del data["chat_id"]
|
||||
|
||||
if "title" in data:
|
||||
del data["title"]
|
||||
|
||||
modified_body_bytes = json.dumps(data).encode("utf-8")
|
||||
# Replace the request body with the modified one
|
||||
|
||||
Reference in New Issue
Block a user