mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 19:08:59 -05:00
[GH-ISSUE #17472] issue: We are getting each request three times . This is happening for all request. Even pipe is also called 3 time each time you call it #56965
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @cvasani on GitHub (Sep 16, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/17472
Check Existing Issues
Installation Method
Docker
Open WebUI Version
latest
Ollama Version (if applicable)
NA
Operating System
Unix
Browser (if applicable)
NA
Confirmation
README.md.Expected Behavior
{"text": "2025-09-16T04:28:24.944757+0000 | WARNING | No OAuth session found for user 280ca759-42f1-4854-b81f-42c371ec2013, session None\n", "record": {"elapsed": {"repr": "0:01:32.510668", "seconds": 92.510668}, "exception": null, "extra": {}, "file": {"name": "oauth.py", "path": "/app/backend/open_webui/utils/oauth.py"}, "function": "get_oauth_token", "level": {"icon": "⚠️", "name": "WARNING", "no": 30}, "line": 178, "message": "No OAuth session found for user 280ca759-42f1-4854-b81f-42c371ec2013, session None", "module": "oauth", "name": "open_webui.utils.oauth", "process": {"id": 1, "name": "MainProcess"}, "thread": {"id": 281472872222752, "name": "MainThread"}, "time": {"repr": "2025-09-16 04:28:24.944757+00:00", "timestamp": 1757996904.944757}}}
{"text": "2025-09-16T04:28:24.944757+0000 | WARNING | No OAuth session found for user 280ca759-42f1-4854-b81f-42c371ec2013, session None\n", "record": {"elapsed": {"repr": "0:01:32.510668", "seconds": 92.510668}, "exception": null, "extra": {}, "file": {"name": "oauth.py", "path": "/app/backend/open_webui/utils/oauth.py"}, "function": "get_oauth_token", "level": {"icon": "⚠️", "name": "WARNING", "no": 30}, "line": 178, "message": "No OAuth session found for user 280ca759-42f1-4854-b81f-42c371ec2013, session None", "module": "oauth", "name": "open_webui.utils.oauth", "process": {"id": 1, "name": "MainProcess"}, "thread": {"id": 281472872222752, "name": "MainThread"}, "time": {"repr": "2025-09-16 04:28:24.944757+00:00", "timestamp": 1757996904.944757}}}
{"text": "2025-09-16T04:28:24.944757+0000 | WARNING | No OAuth session found for user 280ca759-42f1-4854-b81f-42c371ec2013, session None\n", "record": {"elapsed": {"repr": "0:01:32.510668", "seconds": 92.510668}, "exception": null, "extra": {}, "file": {"name": "oauth.py", "path": "/app/backend/open_webui/utils/oauth.py"}, "function": "get_oauth_token", "level": {"icon": "⚠️", "name": "WARNING", "no": 30}, "line": 178, "message": "No OAuth session found for user 280ca759-42f1-4854-b81f-42c371ec2013, session None", "module": "oauth", "name": "open_webui.utils.oauth", "process": {"id": 1, "name": "MainProcess"}, "thread": {"id": 281472872222752, "name": "MainThread"}, "time": {"repr": "2025-09-16 04:28:24.944757+00:00", "timestamp": 1757996904.944757}}}
Actual Behavior
It shall not give multiple status update.
Call shall be only one time .
Hello world 0 should have printed as this is a single call with start value as 0 .
Steps to Reproduce
docker and create a given pipe . observe logging
from pydantic import BaseModel, Field
from typing import Optional, Callable, Dict, Any, Awaitable
import asyncio
import sys
from loguru import logger
logger.remove(0)
logger.add(sys.stderr, format="{time} | {level} | {message}")
logger.add(
"/tmp/logs/test.log",
format="{time} | {level} | {message}",
level="WARNING",
serialize=True,
)
logger.warning("Happy logging with Loguru!")
class Pipe:
class Valves(BaseModel):
MODEL_ID: str = Field(default="")
Logs & Screenshots
Additional Information
@cvasani commented on GitHub (Sep 16, 2025):
Probably this is due to DEFAULT_TAGS_GENERATION_PROMPT_TEMPLATE . Can we have some advise on how to avoid such calling multiple times ?
Logs are also duplicated multiple times. Making logs size go beyond gbs .
@Classic298 commented on GitHub (Sep 16, 2025):
You are aware that multiple model calls are being made to generate tags, titles, follow up prompts, query generation and more, yes?
@rgaricano commented on GitHub (Sep 16, 2025):
Your pipe function has self.type = "manifold" and implements a pipes() method that returns a list of sub-pipes. When Open WebUI processes manifold pipes, it creates separate model entries for each sub-pipe returned by your pipes() method functions.
However, your pipe() method is still being executed for each request, causing the status updates to repeat. The issue is that your pipe function is being invoked multiple times - once for each sub-pipe or potentially multiple times due to how the request is being processed.
3 Solutions:
# Remove this line: self.type = "manifold"