xiaohj233/dsh-compat-shims--packages-pi-ai-compat ↗★ 0
dsh-pi-ai-compat
Version-guarded DSH rc.6 compatibility controls for pi-ai reasoning defaults, message roles, and reasoning-content replay.
AI Analysis
核心用途是解决 DSH rc.6 版本与 pi-ai 接口在推理字段、系统角色上的兼容问题。适合使用特定 pi-ai 兼容网关且遇到接口报错的用户。
Install
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:xiaohj233/dsh-compat-shims#09af87746999677406b0a3946b91e94af27c48a5&path:packages/pi-ai-compatREADME
Read the full README ↗Configuration
Use Models settings to declare the supported effort names and their provider wire spellings, then choose a default. Compatibility flags remain model/profile data and should be enabled only when the target gateway requires them.
supportsDeveloperRole: false selects the SDK's system fallback. requiresReasoningContentOnAssistantMessages: true preserves/replays compatible reasoning content; do not enable it for gateways that reject that field.