xiaohj233/dsh-compat-shims--packages-pi-ai-compat0

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 兼容网关且遇到接口报错的用户。

Package
dsh-pi-ai-compat
Version
0.2.0
License
MIT
Last updated
Aug 14, 2026

Install

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:xiaohj233/dsh-compat-shims#09af87746999677406b0a3946b91e94af27c48a5&path:packages/pi-ai-compat

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.