133563825as-ai/dsh-localdream ↗★ 2

dsh-localdream

DeepSeek Harness 插件:把手机端 Local Dream 的本地 NPU 生图接进对话,一句话出图、图生图、放大与分块重绘,全程离线不计费。 适合需要离线、免Token进行AI生图与图生图的用户。

패키지
dsh-localdream
호환성
미검증
버전
0.1.0
라이선스
MIT
최근 업데이트
2026. 10. 2.

설치

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:133563825as-ai/dsh-localdream

容器里的配置与提示词

都落在 /localdream/(通常是 /root/.dsh/localdream/),全是普通 JSON,可以直接编辑:

localdream/
├── settings.json     使用偏好
├── models.json       per-model 参数预设
├── prompts/          提示词模板,一个模板一个 JSON
└── out/              出图输出

用工具改(推荐,会做校验):

ld_config({ action: 'show' })
ld_config({ action: 'set', key: 'defaultAspectRatio', value: '3:4' })
ld_config({ action: 'set', key: 'models..cfg', value: '6' })
ld_config({ action: 'reset', key: '' })

ld_prompt({ action: 'save', name: '雨夜少女', prompt: '...', aspectRatio: '3:4', steps: 30 })
ld_prompt({ action: 'list' })

然后出图时带模板名即可套用:

ld_draw({ template: '雨夜少女' })

每次调用都重新读盘,改完立即生效,不需要重启宿主。

settings.json 的键

键说明默认
defaultNegativePrompt默认负面提示词(cfg > 1 时生效)内置通用质量词表
defaultAspectRatio默认宽高比1:1
defaultCount默认连出张数1
defaultOutputFormat默认落盘格式png
defaultModel后端被回收时默认重挂哪个模型空(必须显式指定)
maxBatch单次连出张数上限2

maxBatch 默认 2 是有意的:手机 NPU 一次连出更多会持续高负载、发热甚至顶掉内存。想要更多张,优先分多次调用。