[GH-ISSUE #21178] bug: Pipes: Broken RAG Access & Inconsistent Task Payloads for Custom Agents Pipe for GPT 5.2 #58077

Closed
opened 2026-05-05 22:18:06 -05:00 by GiteaMirror · 3 comments
Owner

Originally created by @Soliver84 on GitHub (Feb 5, 2026).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/21178

Check Existing Issues

  • I have searched for any existing and/or related issues.
  • I have searched for any existing and/or related discussions.
  • I have also searched in the CLOSED issues AND CLOSED discussions and found no related items (your issue might already be addressed on the development branch!).
  • I am using the latest version of Open WebUI.

Installation Method

Pip Install

Open WebUI Version

v.0.7.2

Ollama Version (if applicable)

No response

Operating System

Windows Server 2022

Browser (if applicable)

No response

Confirmation

  • I have read and followed all instructions in README.md.
  • I am using the latest version of both Open WebUI and Ollama.
  • I have included the browser console logs.
  • I have included the Docker container logs.
  • I have provided every relevant configuration, setting, and environment variable used in my setup.
  • I have clearly listed every relevant configuration, custom setting, environment variable, and command-line option that influences my setup (such as Docker Compose overrides, .env values, browser settings, authentication configurations, etc).
  • I have documented step-by-step reproduction instructions that are precise, sequential, and leave nothing to interpretation. My steps:
  • Start with the initial platform/version/OS and dependencies used,
  • Specify exact install/launch/configure commands,
  • List URLs visited, user input (incl. example values/emails/passwords if needed),
  • Describe all options and toggles enabled or changed,
  • Include any files or environmental changes,
  • Identify the expected and actual result at each stage,
  • Ensure any reasonably skilled user can follow and hit the same issue.

Expected Behavior

When using a Pipe Function (Manifold) to integrate a custom model (e.g., an Agent acting as "GPT-5.2"):

RAG Access: The model should be able to execute the system tool query_knowledge_files (passed via tools) to retrieve chunks from the active Knowledge Base, just like native models do.

Task Handling: Background tasks (Title Generation, Tag Generation, Follow-up Questions) should send a consistent payload to the Pipe, specifically including the input field as required by the OpenAI Responses API schema (and OpenWebUI's own _run_task_model_request helper).

Model IDs: When OpenWebUI calls the Pipe model (e.g., for a task), it should strip the internal manifold prefix or the Pipe framework should handle the prefixed ID automatically, so external API calls don't fail with model_not_found.

Actual Behavior

RAG Failure: The Pipe receives the tool definition for query_knowledge_files, but when the model attempts to call it (via tools or event_call), the execution fails or returns no data. The agent effectively has no access to the uploaded documents.

Task Crashes: Background tasks crash with ValueError: Task request missing 'input' content for Responses API. The payload sent to the Pipe contains messages but lacks the input field required by the internal helper function.

Model ID Error: During tasks, OpenWebUI sends the full prefixed ID (e.g., openai_responses_manifold_main_suche.gpt-5.2-thinking-high). Passing this ID to the OpenAI API results in 400 Bad Request: model_not_found.

Steps to Reproduce

Setup: Create a new Function (Pipe) in OpenWebUI using the openai_responses template or a custom Agent script.

Configuration: Configure the Pipe to act as a Manifold (Model), e.g., "GPT-5.2".

RAG Test:

Upload a document to the Knowledge Base.

Activate the Knowledge Base in a chat with the Pipe Model.

Ask a question about the document.

Result: The model cannot read the document (Tool execution fails or returns empty).

Task Test:

Send a message in the chat.

Wait for Title Generation or click "Generate Tags".

Result: Check the Logs. The task fails with ValueError: Task request missing 'input'.

Result 2: If input is patched manually, the API call fails with model_not_found because the model ID includes the Manifold prefix.

Logs & Screenshots

File "/app/backend/open_webui/routers/tasks.py", line 312, in generate_follow_ups
return await generate_chat_completion(request, form_data=payload, user=user)
...
ValueError: Task request missing 'input' content for Responses API.

aiohttp.client_exceptions.ClientResponseError: 400, message='Bad Request', url='https://api.openai.com/v1/responses'
RuntimeError: 400 Bad Request: {"error": {"message": "The requested model 'openai_responses_manifold_main_suche.gpt-5.2-thinking-high' does not exist.", "type": "invalid_request_error", "param": "model", "code": "model_not_found"}}

Additional Information

Additional Information
I have developed a workaround script (V19) that manually patches these issues:

It strips the model prefix.

It copies messages to input for tasks.

It implements a complex "RAG Pass-Through" logic to handle query_knowledge_files.

However, these should be handled natively by the OpenWebUI Pipe/Manifold architecture to allow developers to build robust Agents without hacking the pipe() method extensively.

Originally created by @Soliver84 on GitHub (Feb 5, 2026). Original GitHub issue: https://github.com/open-webui/open-webui/issues/21178 ### Check Existing Issues - [x] I have searched for any existing and/or related issues. - [x] I have searched for any existing and/or related discussions. - [x] I have also searched in the CLOSED issues AND CLOSED discussions and found no related items (your issue might already be addressed on the development branch!). - [x] I am using the latest version of Open WebUI. ### Installation Method Pip Install ### Open WebUI Version v.0.7.2 ### Ollama Version (if applicable) _No response_ ### Operating System Windows Server 2022 ### Browser (if applicable) _No response_ ### Confirmation - [x] I have read and followed all instructions in `README.md`. - [x] I am using the latest version of **both** Open WebUI and Ollama. - [x] I have included the browser console logs. - [x] I have included the Docker container logs. - [x] I have **provided every relevant configuration, setting, and environment variable used in my setup.** - [x] I have clearly **listed every relevant configuration, custom setting, environment variable, and command-line option that influences my setup** (such as Docker Compose overrides, .env values, browser settings, authentication configurations, etc). - [x] I have documented **step-by-step reproduction instructions that are precise, sequential, and leave nothing to interpretation**. My steps: - Start with the initial platform/version/OS and dependencies used, - Specify exact install/launch/configure commands, - List URLs visited, user input (incl. example values/emails/passwords if needed), - Describe all options and toggles enabled or changed, - Include any files or environmental changes, - Identify the expected and actual result at each stage, - Ensure any reasonably skilled user can follow and hit the same issue. ### Expected Behavior When using a Pipe Function (Manifold) to integrate a custom model (e.g., an Agent acting as "GPT-5.2"): RAG Access: The model should be able to execute the system tool query_knowledge_files (passed via __tools__) to retrieve chunks from the active Knowledge Base, just like native models do. Task Handling: Background tasks (Title Generation, Tag Generation, Follow-up Questions) should send a consistent payload to the Pipe, specifically including the input field as required by the OpenAI Responses API schema (and OpenWebUI's own _run_task_model_request helper). Model IDs: When OpenWebUI calls the Pipe model (e.g., for a task), it should strip the internal manifold prefix or the Pipe framework should handle the prefixed ID automatically, so external API calls don't fail with model_not_found. ### Actual Behavior RAG Failure: The Pipe receives the tool definition for query_knowledge_files, but when the model attempts to call it (via __tools__ or __event_call__), the execution fails or returns no data. The agent effectively has no access to the uploaded documents. Task Crashes: Background tasks crash with ValueError: Task request missing 'input' content for Responses API. The payload sent to the Pipe contains messages but lacks the input field required by the internal helper function. Model ID Error: During tasks, OpenWebUI sends the full prefixed ID (e.g., openai_responses_manifold_main_suche.gpt-5.2-thinking-high). Passing this ID to the OpenAI API results in 400 Bad Request: model_not_found. ### Steps to Reproduce Setup: Create a new Function (Pipe) in OpenWebUI using the openai_responses template or a custom Agent script. Configuration: Configure the Pipe to act as a Manifold (Model), e.g., "GPT-5.2". RAG Test: Upload a document to the Knowledge Base. Activate the Knowledge Base in a chat with the Pipe Model. Ask a question about the document. Result: The model cannot read the document (Tool execution fails or returns empty). Task Test: Send a message in the chat. Wait for Title Generation or click "Generate Tags". Result: Check the Logs. The task fails with ValueError: Task request missing 'input'. Result 2: If input is patched manually, the API call fails with model_not_found because the model ID includes the Manifold prefix. ### Logs & Screenshots File "/app/backend/open_webui/routers/tasks.py", line 312, in generate_follow_ups return await generate_chat_completion(request, form_data=payload, user=user) ... ValueError: Task request missing 'input' content for Responses API. aiohttp.client_exceptions.ClientResponseError: 400, message='Bad Request', url='https://api.openai.com/v1/responses' RuntimeError: 400 Bad Request: {"error": {"message": "The requested model 'openai_responses_manifold_main_suche.gpt-5.2-thinking-high' does not exist.", "type": "invalid_request_error", "param": "model", "code": "model_not_found"}} ### Additional Information Additional Information I have developed a workaround script (V19) that manually patches these issues: It strips the model prefix. It copies messages to input for tasks. It implements a complex "RAG Pass-Through" logic to handle query_knowledge_files. However, these should be handled natively by the OpenWebUI Pipe/Manifold architecture to allow developers to build robust Agents without hacking the pipe() method extensively.
GiteaMirror added the bug label 2026-05-05 22:18:06 -05:00
Author
Owner

@pr-validator-bot commented on GitHub (Feb 5, 2026):

⚠️ Missing Issue Title Prefix

@Soliver84, your issue title is missing a prefix (e.g., bug:, feat:, docs:).

Please update your issue title to include one of the following prefixes:

  • bug: Bug report or error you've encountered
  • feat: Feature request or enhancement suggestion
  • docs: Documentation issue or improvement request
  • question: Question about usage or functionality
  • help: Request for help or support

Example: bug: Login fails when using special characters in password

<!-- gh-comment-id:3853506929 --> @pr-validator-bot commented on GitHub (Feb 5, 2026): # ⚠️ Missing Issue Title Prefix @Soliver84, your issue title is missing a prefix (e.g., `bug:`, `feat:`, `docs:`). Please update your issue title to include one of the following prefixes: - **bug**: Bug report or error you've encountered - **feat**: Feature request or enhancement suggestion - **docs**: Documentation issue or improvement request - **question**: Question about usage or functionality - **help**: Request for help or support Example: `bug: Login fails when using special characters in password`
Author
Owner

@Soliver84 commented on GitHub (Feb 5, 2026):

nix!

<!-- gh-comment-id:3853530335 --> @Soliver84 commented on GitHub (Feb 5, 2026): nix!
Author
Owner

@Soliver84 commented on GitHub (Feb 5, 2026):

Pipecode.txt

<!-- gh-comment-id:3853554482 --> @Soliver84 commented on GitHub (Feb 5, 2026): [Pipecode.txt](https://github.com/user-attachments/files/25096891/Pipecode.txt)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#58077