Uersx/dsh-dashscope-tool-adapter
Uersx★ 0TypeScript最后同步: 2026-08-18
dsh-dashscope-tool-adapter
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 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 Or manually: How it works 1. A systemPrompt.section() injects text-based tool descriptions into the system prompt. 2. The llm/stream waterfall intercepts only DashScope calls. 3. The model outputs {"name":"...","arguments":{...}} in its text. 4. The plugin parses these markers and constructs standard tool-call-delta / block-end chunks. 5. The DSH agent loop executes the tools natively. License…
在 GitHub 查看完整 README →分类
DeepSeek Harness: Everything is a Plugin.
★ 182,325
amruthpillai/reactive-resumeA one-of-a-kind resume builder that keeps your privacy in mind. Completely secure, customizable, portable, open-source and free forever. Try it out today!
★ 41,477
anywhere-labs/deepseek-harness-desktop为 DeepSeek Harness (DSH) 插件生态打造的现代化桌面端解决方案。万物皆「插件」,桌面本身也是「插件」。
★ 17,784