最新博客文章
16 / 200AI 开发实战教程,从零到一构建你的 AI 应用。
All200
Beginner32
Intermediate92
Advanced76
All
Prompt Engineering12
RAG Retrieval Augmented17
Agent Development34
Model Fine-tuning21
Deployment and Operations25
AI Application Development40
DeepSeek API16
Multimodal Development6
AI Safety6
Model Inference3
Retrieval Systems1
RAG Retrieval1
Model Architecture3
API Development1
Agent Development10
Model Deployment1
Multimodal1
Model Evaluation2
Tutorial
Date
Dialogue Prefix Continuation: Let AI Perfectly Complete Your Half-Sentence
DeepSeek API
Advanced
DeepSeek V4's Chat Prefix Completion (Beta) feature allows the model to continue generating from a specified prefix. This article details use cases, API calls, comparison with FIM, and practical application examples.
JSON Mode Structured Output: From Schema to Production
DeepSeek API
Intermediate
DeepSeek V4 natively supports JSON Mode, ensuring model output strictly conforms to JSON Schema. This article details the response_format parameter, structured output validation, Pydantic integration, and production deployment strategies.
Zero-Code Migration: Replacing Claude API with DeepSeek
DeepSeek API
Beginner
DeepSeek natively supports Anthropic API format compatibility; you only need to modify the base_url line to seamlessly migrate Claude applications to DeepSeek. This article details the migration steps, compatibility comparison table, and precautions, achieving cost reduction and efficiency improvement with zero code changes.
Tool Calls in Practice: The Complete Guide to DeepSeek V4 Function Calling
DeepSeek API
Intermediate
Function Calling is the core mechanism connecting AI to the real world. This article details DeepSeek V4's tool_calls usage, including parallel calls, strict mode, error handling, and multi-tool orchestration, with complete Python/Node.js code.
FIM Code Completion: Making DeepSeek Your AI Programming Assistant
DeepSeek API
Intermediate
Fill-in-the-Middle (FIM) is a core technology for code completion. DeepSeek V4 supports native FIM completion and can be integrated into editors such as VS Code and Neovim. This article details FIM principles, API calls, and editor integration.
Streaming Output in Practice: SSE Handling and Frontend Rendering
DeepSeek API
Intermediate
In production environments, streaming output is key to improving user experience. This article details DeepSeek API's SSE streaming response handling, including Python/Node.js implementations, frontend word-by-word rendering, thinking mode streaming parsing, and interruption handling.
DeepSeek API from Zero to Launch: A Complete Project Walkthrough
DeepSeek API
Beginner
Hands-on guide to building a complete AI application with DeepSeek API—an intelligent customer service system. From environment setup to API calls, from architecture design to frontend interaction, from testing to deployment, covering the entire process.
DeepSeek API Cost Optimization in Practice: Cache Hits Save 98%
DeepSeek API
Beginner
DeepSeek V4 Flash cache hit input costs only ¥0.02/million tokens, saving 98% compared to a miss (¥1/million). This article details the cache mechanism, hit strategies, token management, and a Flash vs Pro selection guide.
DeepSeek V4 Flash Performance In-Depth Review
DeepSeek API
Intermediate
DeepSeek V4 Flash rivals GPT-5 performance at an ultra-low price of ¥0.02/M tokens. This article provides objective selection advice based on real tests across six dimensions: coding, reasoning, mathematics, multilingual, latency, and concurrency.
Efficient Use of 1M Context: Strategies for Multi-Turn Dialogues and Long Document Processing
DeepSeek API
Intermediate
DeepSeek V4 supports a 1M token context window (approximately 700,000 Chinese characters). This article details how to efficiently utilize long contexts, including message truncation strategies, summary compression, chunked processing, and best practices for large document analysis.
LLM Adapter & StreamChunk: Stream Any Model into DeepSeek Harness
DeepSeek API
Advanced
Build an LLM adapter for DeepSeek Harness: minimal interface, StreamChunk field semantics, chunk ordering, reasoning and tool calls in one stream, plus incremental rendering and retry.
Token Usage Precision and Rate Limiting Strategies
DeepSeek API
Beginner
Accurately calculating token usage is the foundation for controlling API costs. This article details token calculation methods, DeepSeek rate limiting rules, concurrency control, and request queue design in production environments.
Long Context in Practice: KV Cache and 1M Token Application Design
DeepSeek API
Intermediate
The 1M context makes it possible to 'stuff in an entire manual', but processing long contexts has many engineering pitfalls. This article explains KV Cache mechanisms, long document chunking strategies, token budget management, and practical designs for multi-turn conversations.
DeepSeek V4 Thinking Mode: The Complete Guide
DeepSeek API
Intermediate
DeepSeek V4's core innovation—Thinking Mode—allows the model to reason deeply before answering. This article details the thinking.type, reasoning_effort parameters, chain-of-thought extraction, and non-thinking/thinking dual-mode switching strategies, with complete Python/Node.js code examples.
DeepSeek Harness Python SDK & Multi-Mode Calls: Web UI to Headless
DeepSeek API
Intermediate
Explore DeepSeek Harness beyond the Web UI: headless runs, CLI, Python SDK, and TypeScript SDK. Learn Python SDK sessions, tool callbacks, streaming output, and multimodal input.
DeepSeek × Claude Code Integration in Practice
DeepSeek API
Beginner
DeepSeek has been integrated into mainstream agent tools such as Claude Code, GitHub Copilot, and OpenCode. This article provides a hands-on guide to using DeepSeek as the backend model to drive Claude Code, enjoying a top-tier coding experience with extremely low API costs.