[GH-ISSUE #9952] [function] We no longer get __task__ and __task_body in v0.5.11 pipes #31236

Closed
opened 2026-04-25 05:16:23 -05:00 by GiteaMirror · 3 comments
Owner

Originally created by @sticky-note on GitHub (Feb 14, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/9952

Installation Method

Docker upgraded from v0.5.10

Environment

  • Open WebUI Version: v0.5.11

  • Ollama (if applicable): Not relevant

  • Operating System: Arch Docker

  • Browser (if applicable): Not relevant

Confirmation:

  • I have read and followed all the instructions provided in the README.md.
  • I am on 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 the exact steps to reproduce the bug in the "Steps to Reproduce" section below.

Expected Behavior:

Get the actual __task__ value in pipe function for OpenWebUI function

Actual Behavior:

I'm logging task at the beginning of pipe function

class Pipe():
    async def pipe(
        self,
        body: dict,
        __user__: Optional[dict] = None,
        # __event_call__,
        __metadata__: Optional[dict] = None,
        __task__: Optional[str] = None,
        __tools__: Optional[dict[str, dict]] = None,
        __task_body__: Optional[dict] = None,
        __event_emitter__: Optional[EventEmitter] = None,
        # __valves__=None,
    ) -> AsyncGenerator:
  logger.debug(f"[pipe] Current Task is : {__task__} with body : {__task_body__}")

and for title generation, we no longer get the correct __task__ value

2025-02-14 00:15:05,320 - function_r2r_rag_manifold - DEBUG - [pipe] Current Task is : None with body : None
2025-02-14 00:15:05,320 - function_r2r_rag_manifold - DEBUG - [pipe] Current Tool : __tools__={}
2025-02-14 00:15:05,320 - function_r2r_rag_manifold - DEBUG - [pipe] Current Body : body={'model': 'my_manifold.ac40969f-973c-481a-8841-b3d4987b7dab', 'messages': [{'role': 'user', 'content': '### Task:\nGenerate a concise, 3-5 word title with an emoji summarizing the chat history.\n### Guidelines:\n- The title should clearly represent the main theme or subject of the conversation.\n- Use emojis that enhance understanding of the topic, but avoid quotation marks or special formatting.\n- Write the title in the chat\'s primary language; default to English if multilingual.\n- Prioritize accuracy over e
(...)
Originally created by @sticky-note on GitHub (Feb 14, 2025). Original GitHub issue: https://github.com/open-webui/open-webui/issues/9952 ## Installation Method Docker upgraded from `v0.5.10` ## Environment - **Open WebUI Version:** `v0.5.11` - **Ollama (if applicable):** Not relevant - **Operating System:** Arch Docker - **Browser (if applicable):** Not relevant **Confirmation:** - [x] I have read and followed all the instructions provided in the README.md. - [x] I am on the latest version of both Open WebUI and Ollama. - [ ] I have included the browser console logs. - [x] I have included the Docker container logs. - [x] I have provided the exact steps to reproduce the bug in the "Steps to Reproduce" section below. ## Expected Behavior: Get the actual `__task__` value in `pipe` function for OpenWebUI function ## Actual Behavior: I'm logging __task__ at the beginning of `pipe` function ```python class Pipe(): async def pipe( self, body: dict, __user__: Optional[dict] = None, # __event_call__, __metadata__: Optional[dict] = None, __task__: Optional[str] = None, __tools__: Optional[dict[str, dict]] = None, __task_body__: Optional[dict] = None, __event_emitter__: Optional[EventEmitter] = None, # __valves__=None, ) -> AsyncGenerator: logger.debug(f"[pipe] Current Task is : {__task__} with body : {__task_body__}") ``` and for title generation, we no longer get the correct `__task__` value ```log 2025-02-14 00:15:05,320 - function_r2r_rag_manifold - DEBUG - [pipe] Current Task is : None with body : None 2025-02-14 00:15:05,320 - function_r2r_rag_manifold - DEBUG - [pipe] Current Tool : __tools__={} 2025-02-14 00:15:05,320 - function_r2r_rag_manifold - DEBUG - [pipe] Current Body : body={'model': 'my_manifold.ac40969f-973c-481a-8841-b3d4987b7dab', 'messages': [{'role': 'user', 'content': '### Task:\nGenerate a concise, 3-5 word title with an emoji summarizing the chat history.\n### Guidelines:\n- The title should clearly represent the main theme or subject of the conversation.\n- Use emojis that enhance understanding of the topic, but avoid quotation marks or special formatting.\n- Write the title in the chat\'s primary language; default to English if multilingual.\n- Prioritize accuracy over e (...) ```
Author
Owner

@tjbck commented on GitHub (Feb 14, 2025):

Could you confirm if the issue persists on our dev branch?

<!-- gh-comment-id:2658033640 --> @tjbck commented on GitHub (Feb 14, 2025): Could you confirm if the issue persists on our dev branch?
Author
Owner

@Haervwe commented on GitHub (Feb 14, 2025):

the refac in chat.py works perfectly. tested just that on the previous version container, without the other changes

<!-- gh-comment-id:2658306584 --> @Haervwe commented on GitHub (Feb 14, 2025): the refac in chat.py works perfectly. tested just that on the previous version container, without the other changes
Author
Owner

@tjbck commented on GitHub (Feb 14, 2025):

Thanks for the confirmation, 0.5.12 will be released shortly

<!-- gh-comment-id:2658433929 --> @tjbck commented on GitHub (Feb 14, 2025): Thanks for the confirmation, 0.5.12 will be released shortly
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#31236