PerryLink/dsh-translate

PerryLink★ 0JavaScriptLast synced: 2026-08-16

Open on GitHub

Vendor parameter translation and deterministic JSON repair for DeepSeek Harness: /translate maps temperature/top_p/max_tokens/stop/system across 11 vendors, and the post-execute repair layer (plus fix_json) fixes broken JSON tool output without ever fabricating data

README excerpt

🔁 dsh-translate Vendor parameter translation and deterministic JSON repair for DeepSeek Harness. Same request, every vendor. Broken JSON, fixed without inventing data. English · 简体中文 · Español · Português · हिन्दी Compatibility Surface Status Harness DeepSeek Harness 0.1.0-rc.6 (compat declared for 0.1.0-rc.5 – 0.1.0-rc.6 ) Node ^22.19.0 \ \ =24.0.0 Form Pure-host JS plugin (no browser half) Model Any model — repair is deterministic, no extra model calls What you get Two independent surfaces, one bundle: - /translate — the vendor parameter translation table: temperature , top p , max tokens , stop , system , and 8 more canonical parameters mapped across 11 vendors (OpenAI, ERNIE, Qwen, Anthropic, Google, DeepSeek, Mistral, Cohere, xAI, Groq, Azure). Ask for a pairwise mapping, list vendors/params, or convert a whole standard request ( transformRequest in lib/rosetta.mjs ). - The repair layer — a tools/post-execute listener plus the fix json tool. When a successful tool result carries broken JSON as a string (string-rooted or json -rooted output schema, or a tool opted in by name), the layer repairs it deterministically: markdown-fence extraction, escape repair, trailing-comma remo…

View full README on GitHub →
Tools / Devcordisdeepseekdeepseek-harnessdshdsh-pluginjson-repairllm-apiparameter-mapping

Category