소스 정보
- 저장소
- publieople/hermes-config-kit
- 최근 소스 활동
- 2026년 7월 4일 22:00
- 감지된 SKILL.md 언어
- 중국어
- 스타
- 0
- 포크
- 0
설치 방법
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
소스 파일 검토
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
메뉴
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
SOC 직업 분류 기준
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
직접 명령은 검토 Prompt를 거치지 않습니다. 실행하기 전에 소스를 확인하세요.
npx skills add https://github.com/publieople/hermes-config-kit --skill deepseek-api-patterns명령은 한 줄로 유지됩니다. 복사하기 전에 가로로 스크롤해 전체 내용을 확인하세요.
로컬 사본을 원하시나요? SkillsMP에서 현재 제공할 수 있는 파일을 다운로드하세요.
SKILL.md 표시 중
Manage AstrBot knowledge bases — create, upload, retrieve, delete via WebUI or REST API. Use when adding documents to an AstrBot bot's RAG knowledge base, troubleshooting embedding issues, or automating KB updates.
Integrate Hermes Agent with external desktop applications, IDEs, and AI tools — mapping their integration interfaces (custom API endpoints, MCP support, terminal hooks) to Hermes' built-in capabilities (API Server, MCP Server Mode, CLI spawning). Use when asked to "connect Hermes to X" or "make Hermes work with Y" for any third-party app.
国内量化交易系统搭建 — 行情终端 vs 量化系统辨析、券商通道瓶颈、开源框架选型、老式行情软件逆向分析
| name | deepseek-api-patterns |
| description | DeepSeek API 使用模式 — ReAct Agent、Function Calling、中文交互的坑和最佳实践 |
| category | mlops |
使用 DeepSeek API(通过 openai Python 库,base_url="https://api.deepseek.com")时的常见模式和陷阱。
from openai import OpenAI
client = OpenAI(
api_key=os.getenv("DEEPSEEK_API_KEY"),
base_url="https://api.deepseek.com",
)
DeepSeek 的 deepseek-chat 不会在 ReAct prompt 的 PAUSE 处停止。它会一次性生成整个多步循环(包括幻觉的 Observation)。
修复:在 API 调用中加 stop=["PAUSE"]:
response = client.chat.completions.create(
model="deepseek-chat",
messages=messages,
stop=["PAUSE"], # 关键:强制模型在此停止
)
DeepSeek 可能输出中文冒号 : 而非 ASCII :。所有正则解析必须兼容两者:
# 不要这样
re.search(r"Action:\s*(\w+)", text)
re.search(r"Final Answer:\s*(.*)", text)
# 要这样
re.search(r"Action[::]\s*(\w+)", text)
re.search(r"Final Answer[::]\s*(.*)", text)
re.search(r"Action Input[::]\s*(.*)", text)
Thought → Action → Action Input → PAUSE → [代码执行工具] → Observation → 循环
参考实现见 references/react-agent-full.py。
DeepSeek 完全兼容 OpenAI 的 function calling 格式。标准模式无需特殊处理。
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 代理时,设置环境变量:
export HTTP_PROXY=http://127.0.0.1:7890
export HTTPS_PROXY=http://127.0.0.1:7890
项目在 /mnt/e/... 等 Windows 盘上时,uv 在 NTFS 上操作 .venv 可能遇到权限错误(Operation not permitted)。
方案:把 venv 放在 Linux 文件系统(/home/po/.venvs/<name>),项目里用软链接:
uv venv --python 3.13 /home/po/.venvs/project-name
ln -sf /home/po/.venvs/project-name .venv
注意:Windows 不认 Linux 软链接。如果需要在 Windows 侧 uv run,先 rm .venv 让它自动重建。