🤖
AI EngineeringPython

DeepSeek API Expert

by val1813

DeepSeek API Expert is an AI Engineering skill for Claude Code, published by val1813 in kwcode.

688 stars92 forkson val1813/kwcodeAdded 2026/08/12Repository updated 2026/05/14
Install in seconds
Install DeepSeek API Expert
Copy DeepSeek API Expert into your Claude Code skills folder. Run the command in your terminal, or review the source on GitHub before installing.
terminal
npx degit https://github.com/val1813/kwcode/tree/master/kaiwu/builtin_experts/deepseekapi ~/.claude/skills/deepseekapi

Requires Node.js. Downloads this skill only — not the rest of the repository — into your Claude Code skills folder.

Without Node.js

git clone https://github.com/val1813/kwcode.git

Clones the whole repository, then copy the skill’s own directory into your skills folder yourself.

In this catalog

Source file
kaiwu/builtin_experts/deepseekapi/SKILL.md in val1813/kwcode
Installs to
~/.claude/skills/deepseekapi
Collection
One of 19 skills cataloged from this repository
Category
AI Engineering2451 skills

What DeepSeek API Expert does

DeepSeek API Expert covers OpenAI-compatible calls for DeepSeek and similar Chinese LLM APIs, including streaming, retries, timeouts, token counting, and prompt setup. Use it when wiring Python code to chat completions or handling API errors and long outputs.

DeepSeek API Expert is cataloged under AI Engineering on DirSkills.

Documentation

README

领域知识

  • 国产LLM统一用 OpenAI 兼容接口格式(/v1/chat/completions)
  • DeepSeek base_url: https://api.deepseek.com,Qwen: https://dashscope.aliyuncs.com/compatible-mode/v1
  • 流式响应:stream=True + SSE解析,逐chunk拼接content字段
  • token计费:输入/输出分别计价,用tiktoken或API返回的usage字段统计
  • 限流处理:捕获429状态码,指数退避重试(1s/2s/4s),最多3次
  • 超时设置:连接超时10s,读取超时60s(长文本生成可加到120s)
  • prompt工程:system message定角色,few-shot放user/assistant交替
  • 温度参数:代码生成用0.0-0.3,创意文本用0.7-1.0
  • 错误处理:区分可重试错误(429/500/503)和不可重试错误(400/401)
  • 长文本:超过模型max_tokens时自动截断或分段处理

经验规则(自动生成)

Frequently asked about DeepSeek API Expert

  • What else does val1813 publish alongside DeepSeek API Expert?

    DeepSeek API Expert is one of 19 skills that DirSkills catalogs from val1813/kwcode, the repository it ships in. Its siblings there include API Expert, Bug Fix Expert and Docstring Expert. Each one is a separate skill with its own page in this directory, installs the same way DeepSeek API Expert does, and is maintained by val1813 in that same repository. The rest of the collection is listed on the val1813/kwcode page.

  • How does DeepSeek API Expert compare to other AI Engineering skills?

    DeepSeek API Expert ranks #1739 by stars among the 2451 AI Engineering skills in this catalog. The most-starred ones next to it are Architecture Decision Records, AI-First Engineering and Agentic OS. DirSkills ranks by the star count of the repository each skill ships in, so that order reflects how popular those repositories are rather than any review of DeepSeek API Expert against them. Open each page to compare what they document and how they install.