CC (@codming) 在 Open WebUI 函数:使用当贝免费满血 DeepSeek R1 中发帖
最近国内部署了 Deepseek 的厂商也太多了,当贝也搞了一个,免登录,速度还挺快,我想着在 openwebui 里怎么对接上它,就写了这么一个函数,希望有帮助。
效果:
[截屏2025-02-20 17.21.46]
代码:
"""
title: DeepSeek R1 From Dangbei
author: Codming
author_url: https://codming.com/
description: DeepSeek R1 From Dangbei
version: 1.0.0
licence: MIT
"""
import secrets
import time
import uuid
import hashlib
import json
import re
import httpx
from typing import AsyncGenerator, ...