[GH-ISSUE #18222] feat: Enable Filter inlet function on tool call continuations #89275

Closed
opened 2026-05-15 14:10:15 -05:00 by GiteaMirror · 2 comments
Owner

Originally created by @Algorithm5838 on GitHub (Oct 10, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/18222

Check Existing Issues

  • I have searched the existing issues and discussions.

Problem Description

Filter inlet functions only run on initial requests, not when tool results are sent back to the model. This breaks parameter persistence.

Example Filter:

def inlet(self, body, __user__):
    body["reasoning"] = {"effort": "medium"}
    return body

Impact (using models via OpenRouter with native function calling):

  • Claude Sonnet (defaults no reasoning): Reasons initially with Filter, stops after tool call
  • GLM-4.6 (defaults to reasoning): Doesn't reason initially without Filter, starts reasoning after tool call

Filter modifications don't persist through tool interactions.

Desired Solution you'd like

Invoke Filter inlet on tool continuation requests, same as initial requests.

Alternatives Considered

No response

Additional Context

No response

Originally created by @Algorithm5838 on GitHub (Oct 10, 2025). Original GitHub issue: https://github.com/open-webui/open-webui/issues/18222 ### Check Existing Issues - [x] I have searched the existing issues and discussions. ### Problem Description Filter `inlet` functions only run on initial requests, not when tool results are sent back to the model. This breaks parameter persistence. Example Filter: ```python def inlet(self, body, __user__): body["reasoning"] = {"effort": "medium"} return body ``` Impact (using models via OpenRouter with native function calling): - Claude Sonnet (defaults no reasoning): Reasons initially with Filter, stops after tool call - GLM-4.6 (defaults to reasoning): Doesn't reason initially without Filter, starts reasoning after tool call Filter modifications don't persist through tool interactions. ### Desired Solution you'd like Invoke Filter `inlet` on tool continuation requests, same as initial requests. ### Alternatives Considered _No response_ ### Additional Context _No response_
Author
Owner

@tjbck commented on GitHub (Oct 11, 2025):

Should be addressed with 5064506de4.

<!-- gh-comment-id:3393623076 --> @tjbck commented on GitHub (Oct 11, 2025): Should be addressed with 5064506de4eb6c0aae560c82b79fcf8f1a56c123.
Author
Owner

@Algorithm5838 commented on GitHub (Oct 13, 2025):

Appreciate it.

<!-- gh-comment-id:3397293547 --> @Algorithm5838 commented on GitHub (Oct 13, 2025): Appreciate it.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#89275