AI product Open source

deepseek-recipe

deepseek-recipe is a collection of Rust libraries and Python bindings for converting API requests in Messages, Chat Completions, and Responses formats into a shared conversation representation, encoding conversations into prompts or token IDs for DeepSeek V4 and V4.1 models, and converting model output back into protocol-specific responses. It supports streaming, text and image inputs, thinking and reasoning settings, function tools, tool calls, JSON object output, and stop sequences; its image component provides DeepSeek V4.1 preprocessing with OpenCV. The package parses model output and handles prompt encoding, while inference, tool execution, and HTTP transport are supplied externally. It includes separate components for core conversation types, prompt encoding, image processing, Python bindings, and example Axum and FastAPI servers with mock inference. Project code and public documentation are licensed under the MIT License.

View repository Mentioned in 1 video ↓

What deepseek-recipe is used for

1 use taken from transcripts — each links to the moment in the video.

  • Provides Rust libraries and Python bindings for converting between different AI API formats, including messages, chat completions, responses, streaming, and tool calls.

Videos mentioning deepseek-recipe

1 in the library.