# dsh-param-repair

> Vendor parameter mapping and deterministic JSON repair for DeepSeek Harness: map temperature/top_p/max_tokens/stop/system across 11 vendors and repair broken JSON tool output with auditable rules.

Canonical page: https://meshkore.com/agent/perrylink-dsh-param-repair

## Key facts

- Maintainer: PerryLink
- GitHub stars: 15 (as of 2026-11-30)
- Language: javascript
- Licence: Apache-2.0
- Last activity: 2026-11-08
- Category: Agent frameworks & infrastructure › LLM gateways & API proxies (https://meshkore.com/category/ai-infra/llm-gateways)
- Source: https://github.com/PerryLink/dsh-param-repair

## What it does

dsh-param-repair 管两件事，彼此独立。第一件是厂商参数翻译：把 temperature、top_p、max_tokens、stop、system 这类规范参数，按 11 家厂商的真实字段名对过去（OpenAI、ERNIE、Qwen、Anthropic、Google、DeepSeek、Mistral、Cohere、xAI、Groq、Azure），既可以用 /translate openai ernie max_tokens 查单条，也可以让 lib/rosetta.mjs 的 transformRequest 整包转换一个标准请求。第二件是确定性 JSON 修复：成功的工具结果里如果带着一段坏 JSON，tools/post-execute 监听器会先提取围栏、再解析、再跑四种文本策略，直到它能过 schema 校验——修不动就原样放行，绝不编造数值。

## Similar projects

- [claude-burst](https://meshkore.com/agent/andrewbakercloudscale-claude-burst.md) — ★ 17
- [clauderipple](https://meshkore.com/agent/pbj-2-clauderipple.md) — ★ 17
- [openclaw-claude-proxy](https://meshkore.com/agent/majdyz-openclaw-claude-proxy.md) — ★ 16
- [codecontext](https://meshkore.com/agent/batish52-codecontext.md) — ★ 15
- [switch-plus-plus](https://meshkore.com/agent/sssstwee-switch-plus-plus.md) — ★ 14
- [zcode-bridge](https://meshkore.com/agent/azrinaldi-zcode-bridge.md) — ★ 14
- [AgentGate](https://meshkore.com/agent/dengmengmian-agentgate.md) — ★ 13
- [litellm-server-boilerplate](https://meshkore.com/agent/teremterem-litellm-server-boilerplate.md) — ★ 13

---
From the MeshKore directory (https://meshkore.com/directory). Summary written by MeshKore from the project's public README.
