mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-07 03:18:23 -05:00
[PR #20907] [CLOSED] feat(functions): Add "Neural Log" Visualizer for Reasoning Models (DeepSeek R1) #64678
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?
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/20907
Author: @sjhddh
Created: 1/23/2026
Status: ❌ Closed
Base:
main← Head:feat/deepseek-r1-neural-log📝 Commits (1)
1cddde4feat(functions): Add DeepSeek R1 Neural-Log Visualizer📊 Changes
1 file changed (+116 additions, -0 deletions)
View changed files
➕
examples/filters/r1_neural_log.py(+116 -0)📄 Description
Summary
This PR introduces a new Function/Filter (
examples/filters/r1_neural_log.py) designed to enhance the Developer Experience (DX) when working with reasoning models like DeepSeek R1.Problem:
Reasoning models output their internal thought process within
<think>tags. Currently, this is displayed as raw text or hidden, making it difficult to distinguish between the "reasoning trace" and the final answer.Solution:
The Neural Log Visualizer intercepts these tags and transforms the content into a stylized "System Log" or "Cyberpunk Terminal" block. This visual separation allows users to inspect the logic chain without it cluttering the final response.
Features
<think>tags (even if unclosed during streaming).[NEURAL]) to each line of reasoning.<think>).Test Plan
examples/filters/r1_neural_log.py.<think>tags (or simulate it).Screenshot
(See description in issue/request)
CLA
contributor license agreement
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.