Skip to main content
Yanked

This release has been yanked by its maintainers, and will be ignored by installers, except when explicitly specified.
Consider using release 0.1.1 instead.
Reason given by maintainers: obsolete

deepseek-recipe-python

Python bindings for deepseek-recipe: conversion of Messages, Chat Completions, and Responses requests, DeepSeek V4/V4.1 prompt and token encoding, image preprocessing, and response streaming. Model inference, tool execution, and HTTP transport are provided by the application.

Installation

Python 3.10 or later:

python3 -m pip install deepseek-recipe

Import as deepseek_recipe. Source builds require Rust, OpenCV 4.x, and Clang/libclang.

Example

from deepseek_recipe import ChatCompletionRequest, ConversionOptions, DeepseekV41Encoding

request = ChatCompletionRequest({
    "model": "deepseek-flash",
    "messages": [{"role": "user", "content": "Hello"}],
})
converted = request.convert(ConversionOptions())
rendered = DeepseekV41Encoding().render_conversation(converted.conversation)
print(rendered.prompt)

License

MIT. The distribution includes the license text.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

deepseek_recipe-0.1.0-cp310-abi3-macosx_11_0_arm64.whl (8.3 MB view details)

Uploaded CPython 3.10+macOS 11.0+ ARM64

File details

Details for the file deepseek_recipe-0.1.0-cp310-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for deepseek_recipe-0.1.0-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 fe623b82ee8c040d570c7dc0d49a6b29e48920386a3283fde5a21438c9e64572
MD5 0ceb04db38a41b6b1e26bb0c38c33a53
BLAKE2b-256 3327e2c59fb1f6a980bc54671f70aca08c1a7374c78212abb22370904f98fa7d

See more details on using hashes here.

Release history Release notifications | RSS feed

0.1.1

4 files

This release

0.1.0 This release

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page