DeepSeek R1_ThinkFix

function

在OpwenWebUI中显示DeepSeek R1模型的思维链(仅支持0.5.6及以上版本),修复新版本template输出缺少开头think标签问题 / Display the reasoning chain of the DeepSeek R1 model in OpwenWebUI(Only supports versions 0.5.6 and above), Fix the issue of the new version template output missing the starting <think> tag

kinglywayne
@kinglywayne
·
2 years ago
773
1
1.9K
Updated 2 years ago
Created Feb 13, 2025
deepseek_r1_thinkfix.py
Python · 398 lines
"""
title: DeepSeek R1
author: zgccrui
originalVersion: https://openwebui.com/f/zgccrui/deepseek_r1
reviser: KinglyWayne
description: 在OpwenWebUI中显示DeepSeek R1模型的思维链 - 仅支持0.5.6及以上版本, 修复deepseek r1生成内容缺少开头<think>标签的问题 / Display the thinking chain of the DeepSeek R1 model in OpwenWebUI - only supported in versions 0.5.6 and above, fixing the issue of missing <think> tags at the beginning of the generated content.
version: 1.2.16-r1
licence: MIT
"""


import json

在OpwenWebUI中显示DeepSeek R1模型的思维链(仅支持0.5.6及以上版本),修复新版本template输出缺少开头think标签问题 / Display the reasoning chain of the DeepSeek R1 model in OpwenWebUI(Only supports versions 0.5.6 and above), Fix the issue of the new version template output missing the starting tag


0