DeepSeek R1

function

在OpwenWebUI中显示DeepSeek R1模型的思维链(仅支持0.5.6及以上版本) / Display the reasoning chain of the DeepSeek R1 model in OpwenWebUI(Only supports versions 0.5.6 and above)

zgccrui
@zgccrui
·
2 years ago
15K
4
31K
Updated 2 years ago
Created Jan 22, 2025
deepseek_r1.py
Python · 388 lines
"""
title: DeepSeek R1
author: zgccrui
description: 在OpwenWebUI中显示DeepSeek R1模型的思维链 - 仅支持0.5.6及以上版本
version: 1.2.16
licence: MIT
"""

import json
import httpx
import re
from typing import AsyncGenerator, Callable, Awaitable

在OpwenWebUI中显示DeepSeek R1模型的思维链(仅支持0.5.6及以上版本) / Display the reasoning chain of the DeepSeek R1 model in OpwenWebUI(Only supports versions 0.5.6 and above)


1