Configuration rules and best practices for integrating DeepSeek API into production applications.
DeepSeek API Integration Rules: Model Selection: - deepseek-chat: General conversation, coding, writing (V3) - deepseek-reasoner: Complex reasoning, math, logic (R1) API Configuration: - Base URL: https://api.deepseek.com/v1 - Compatible with OpenAI SDK (drop-in replacement) - Set timeout to 120s for reasoning models - Use streaming for long responses Best Practices: - Implement exponential backoff for rate limits - Cache responses for identical prompts - Use structured output (JSON mode) for data extraction - Monitor token usage and costs - Implement content filtering for production apps
System rules for designing inter-service communication in microservices architectures with DeepSeek Coder, covering sync/async patterns, error handling, and resilience.
System rules for generating content in multiple languages with DeepSeek V3, covering translation quality, cultural adaptation, locale-specific formatting, and quality assurance.
System rules for safe code refactoring with DeepSeek R1, requiring test coverage verification, incremental changes, and behavior preservation checks.
System rules for using DeepSeek V3 to generate clear, maintainable technical documentation including API docs, architecture docs, and onboarding guides.
System rules for DeepSeek Coder to generate optimized database queries, with requirements for EXPLAIN analysis, indexing recommendations, and performance targets.
System rules for using DeepSeek V3 to generate infrastructure code, CI/CD pipelines, and operational runbooks with security and reliability best practices.