tianyiming1/dsh-plugin-local-prompt-bridge ↗★ 0

@local/dsh-plugin-local-prompt-bridge

Stock-safe DSH plugin: HTTP tokenize pressure + llama.cpp overflow → CONTEXT_WINDOW_EXCEEDED compact-retry. Community dsh-plugin; does not patch @deepseek-ai packages. 适合使用llama.cpp等本地模型、经常遇到上下文超限报错的用户。

패키지
@local/dsh-plugin-local-prompt-bridge
호환성
미검증
Harness peer 범위
*
Cordis peer 범위
*
버전
0.1.1
라이선스
MIT
최근 업데이트
2026. 9. 30.

설치

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:tianyiming1/dsh-plugin-local-prompt-bridge

配置主动压缩(可选)

在 你的 profile cordis.patch.yml 里覆盖插件 config(不要改别人的机器上的默认):

- id: local-prompt-bridge
  config:
    routes:
      - provider: llama-cpp-local   # 与 llm-pi-ai 里的 provider id 一致
        baseURL: http://127.0.0.1:8080/v1
        contextWindow: 65536
    thresholdRatio: 0.75

也可直接编辑本包 cordis.patch.yml(仅本地 fork / link 时)。