Skip to main content

🚀 DeepSeekAI: easy use the deepseek model

Install

  • Install from source (Recommend)
cd deepseek_ai
pip install -e .
  • Install from PyPI
pip install deepseek-ai

Quick Start

  • All the code can be found in the examples
  • Set DeepSeek API key in environment if using DeepSeek models: export DEEPSEEK_API_KEY="sk-...".
  • Maybe you can try loading environment variables like this. Create a new .env file
DEEPSEEK_API_KEY="sk-..."
from dotenv import load_dotenv, find_dotenv
load_dotenv(find_dotenv(), override=True)
It works with the Langchain library
from deepseek_ai import DeepSeekAI

client = DeepSeekAI(
    api_key="sk-...",
)

messages = [{"role": "user", "content": "9.11 and 9.8, which is greater?"}]

response = client.chat.completions.create(
    model="deepseek_ai-chat",
    messages=messages
)

print(response.choices[0].message.content)

Metadata

Release files for deepseek-ai 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for deepseek-ai 0.0.1
File Size Uploaded Provenance
deepseek_ai-0.0.1.tar.gz 7.2 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for deepseek-ai 0.0.1
File Interpreter ABI Platform
deepseek_ai-0.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 15.2 kB

Release files / deepseek_ai-0.0.1.tar.gz

Download URL deepseek_ai-0.0.1.tar.gz
Size 7.2 kB
Tags Source
SHA-256 checksum
How to use checksums
bd5e660e19ef64a8eed05a0613a5e070d46b2c869c67a87135234e1f963a0db6
BLAKE2b-256 checksum
How to use checksums
d03540ab4e870a27efe737798e0d06531504cc9518389298ddae73a61a8365e8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.5 CPython/3.10.14 Linux/5.15.167.4-microsoft-standard-WSL2

Release files / deepseek_ai-0.0.1-py3-none-any.whl

Download URL deepseek_ai-0.0.1-py3-none-any.whl
Size 8.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
04eef34cc411436d9cd38f39642267e456fbcf9b75714e998a3bc8e1717bf731
BLAKE2b-256 checksum
How to use checksums
0737ace0d573e7cd0c59fdfe9872afc6abe19c143a4bd456196a73e0f9eccdbb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.5 CPython/3.10.14 Linux/5.15.167.4-microsoft-standard-WSL2

Security for deepseek-ai 0.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files No provenance

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