publieople/hermes-config-kit/deepseek-api-patterns
Claude Code and agent skill by publieople/hermes-config-kit
- community
Checking that the SKILL.md file is still in the repository.
DeepSeek API 使用模式 — ReAct Agent、Function Calling、中文交互的坑和最佳实践
Install
npx vskill@latest install publieople/hermes-config-kit/deepseek-api-patternsSKILL.md
The same SKILL.md was published earlier as publieople/hermes-config-kit/deepseek-api-patterns.
DeepSeek API Patterns
使用 DeepSeek API(通过 openai Python 库,base_url="https://api.deepseek.com")时的常见模式和陷阱。
环境
ReAct Agent 模式
关键陷阱:模型不尊重 PAUSE
DeepSeek 的 deepseek-chat 不会在 ReAct prompt 的 PAUSE 处停止。它会一次性生成整个多步循环(包括幻觉的 Observation)。
修复:在 API 调用中加 stop=["PAUSE"]:
中文冒号兼容
DeepSeek 可能输出中文冒号 : 而非 ASCII :。所有正则解析必须兼容两者:
ReAct 循环标准流程
参考实现见 references/react-agent-full.py。
Function Calling 模式
DeepSeek 完全兼容 OpenAI 的 function calling 格式。标准模式无需特殊处理。
Provider Selection & Pricing
DeepSeek introduced peak/off-peak pricing for V4正式版 (mid-July 2026): 2x during 9-12 and 14-18 Beijing time. 硅基流动 offers same models at flat pricing (no peak surcharge), OpenAI-compatible API. See references/provider-pricing.md for current comparison.
Pitfall: web_search/web_extract often return stale pricing. Use browser tools to check actual provider pricing pages.
代理配置
使用 Clash 代理时,设置环境变量:
WSL + NTFS venv 陷阱
项目在 /mnt/e/... 等 Windows 盘上时,uv 在 NTFS 上操作 .venv 可能遇到权限错误(Operation not permitted)。
方案:把 venv 放在 Linux 文件系统(/home/po/.venvs/<name>),项目里用软链接:
注意:Windows 不认 Linux 软链接。如果需要在 Windows 侧 uv run,先 rm .venv 让它自动重建。
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/_archive/mlops/deepseek-api-patterns/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/publieople/hermes-config-kit/deepseek-api-patterns)