deepseek-ai/deepseek-recipe

deepseek-recipe is a collection of Rust libraries and Python bindings that convert API requests into formats compatible with DeepSeek models.

Owned by DeepSeek

View on GitHub ↗Jump to charts ↓

deepseek-ai/deepseek-recipe has 400+ stars and 40+ forks on GitHub, is written in Rust, and was last pushed on Sep 10, 2026. Data as of . Signed-in members get hourly updates — create a free account.

Summary Information

Updated 13 minutes ago
Added to GitGenius on October 12th, 2026
Created on September 10th, 2026
Open Issues & Pull Requests: 24 (+0)
GitHub issues: Enabled
Number of forks: 40
Total Stargazers: 416 (+0)
Total Subscribers: 1 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 3.1 hours
Mean response time: 3.1 hours
90th percentile: 3.1 hours
Tracked items: 1

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 7
New in 7 days: 1
Closed in 7 days: 0
Avg open age: 19 days
Stale 30+ days: 3
Stale 90+ days: 0

Recent activity

Opened in 7 days: 1
Closed in 7 days: 0
Comments in 7 days: 0
Events in 7 days: 0

Top labels

No label distribution available yet.

Most active issues this week

Sign in to see which issues are moving.
Sign in

Detailed Description

deepseek-recipe is a collection of Rust libraries and Python bindings that convert API requests into formats compatible with DeepSeek models.

The tool solves the problem of bridging multiple API request formats to DeepSeek model inference. It accepts requests in Messages, Chat Completions, and Responses formats, converts them into prompts encoded for DeepSeek V4 and V4.1 models, and transforms model output back into the corresponding response format. The approach treats request conversion, prompt encoding, and response parsing as separate composable components that can be integrated with external inference backends and HTTP transport layers.

Developers should choose this tool when building API services that need to support multiple request formats while using DeepSeek models as the inference backend. It suits projects that require flexibility in API compatibility without reimplementing format conversion logic. The tool handles text and image inputs, thinking mode, tool calling, and streaming responses. Notable limitations include lack of support for token probabilities, document or audio input, server-side tool execution like web search, JSON Schema output constraints, and conversation storage through the Responses API.

The project maintains active development with regular updates to support new model versions and API features. Rust serves as the primary implementation language with Python bindings provided for broader accessibility. The codebase includes comprehensive documentation covering streaming responses, tokenizer integration, and development setup including image preprocessing dependencies. Example code and an interactive demo are available to help developers understand the conversion pipeline.