Function
pipe
v1.0.0
DeepseekV2.5
Deepseek v2.5 API both for chat and coding *** NOT SUPPORT IMAGE INPUT ***
Function ID
DeepseekAPI
Creator
@xgawatt
Downloads
449+
Sponsored by Open WebUI Enterprise
Open WebUI Enterprise

Upgrade to a licensed plan for enhanced capabilities, including custom theming and branding, and dedicated support.

Function Content
python
"""
title: Deepseek Manifold Pipe
authors: Eakkawat Prommana
author_url: https://github.com/eakkawat
funding_url: https://github.com/open-webui
version: 1.0.0
required_open_webui_version: 0.3.32
license: MIT
"""

import os
import requests
import json
import time
from typing import List, Union, Generator, Iterator
from pydantic import BaseModel, Field
from open_webui.utils.misc import pop_system_message


class Pipe:
class Valves(BaseModel):
DEEPSEEK_API_KEY: str = Field(default="")

def __init__(self):
self.type = "manifold"
self.id = "deepseek"
self.name = "deepseek/"
self.valves = self.Valves(
**{"DEEPSEEK_API_KEY": os.getenv("DEEPSEEK_API_KEY", "")}
)
pass

def get_deepseek_models(self):
return [
{"id": "deepseek-chat", "name": "deepseek-chat"},
{"id": "deepseek-coder", "name": "deepseek-coder"},