このページはまだお使いの言語に翻訳されていないか、翻訳が技術レビュー待ちです。以下には英語の原文を表示しています。 英語のページを開く
DeepSeek Integration
Add governance to DeepSeek API calls. Control Zero intercepts requests through the Governance Gateway and enforces your dashboard policies on every interaction.
Overview
DeepSeek provides reasoning and coding models via an OpenAI-compatible API. When routed through the Control Zero Governance Gateway, every request is governed by your policies and logged for audit.
DeepSeek uses the OpenAI-compatible wire format, so the integration reuses the same interceptors and policy enforcement as the OpenAI integration.
Setup
1. Configure the Gateway
Enable the DeepSeek provider in your Governance Gateway configuration:
# Environment variables for the gateway
CZ_GATEWAY_DEEPSEEK_ENABLED=true
CZ_GATEWAY_DEEPSEEK_API_KEY=your_deepseek_api_key
2. Route Requests Through the Gateway
Point your client at the gateway's DeepSeek endpoint:
import openai
# Route through Control Zero gateway instead of direct DeepSeek
client = openai.OpenAI(
base_url="http://localhost:8000/deepseek",
api_key="cz_live_your_key_here",
)
response = client.chat.completions.create(
model="deepseek-chat",
messages=[{"role": "user", "content": "Explain the CAP theorem in distributed systems."}],
)
print(response.choices[0].message.content)