설치
npx -y @deepseek-ai/dsh plugin --profile web add github:Uersx/dsh-dashscope-tool-adapter이 설치 명령은 GitHub 저장소 주소에서 생성된 확인되지 않은 시작점입니다.
README
유지 관리자가 작성한 문서 스냅샷입니다.
최근 디렉터리 동기화에서 이 README 스냅샷을 새로 고치지 못했습니다.
dsh-dashscope-tool-adapter
DSH plugin: adapts DashScope / 阿里云百炼 DeepSeek endpoints that lack native tool calling.
Problem
DashScope's OpenAI-compatible endpoint (https://dashscope.aliyuncs.com/compatible-mode/v1) does not support native tool calling (function calling) for DeepSeek models. When DSH sends tool definitions, the API either ignores them or rejects the request.
Solution
This plugin converts tool definitions into prompt text and parses the model's text response for <|tool_call|> markers. It then constructs standard BlockAssembler-compatible tool-call chunks, which the DSH agent loop executes natively.
- Non-DashScope providers: untouched, native tool calling works as usual.
- DashScope providers: tools are described in the system prompt, and the model calls them via text markers.
Installation
dsh plugin add github:Uersx/dsh-dashscope-tool-adapter
Or manually:
dsh plugin --profile web add github:Uersx/dsh-dashscope-tool-adapter
How it works
- A
systemPrompt.section()injects text-based tool descriptions into the system prompt. - The
llm/streamwaterfall intercepts only DashScope calls. - The model outputs
<|tool_call|>{"name":"...","arguments":{...}}</|tool_call|>in its text. - The plugin parses these markers and constructs standard
tool-call-delta/block-endchunks. - The DSH agent loop executes the tools natively.
License
MIT
저장소 정보
- 언어
- TypeScript
- 라이선스
- 보고되지 않음
- 마지막 업데이트
- 2026. 8. 18. AM 4:55
신중하게 설치하기
소스 코드, 권한, 수명 주기 스크립트, 의존성 및 네트워크 접근을 검토하고 신뢰하지 않는 플러그인은 격리 환경에서 테스트하세요.