dsh-um-proxy-ondemand

管理 DSH 的 um-genai provider 所連的本機 UM GenAI 反代(127.0.0.1:8788)的生命週期:llm/stream 請求進來時按需喚醒、閒置一段時間後關閉、提供健康檢查與唯讀狀態端點。另附 DSH 設定頁(埠號、常駐模式、閒置分鐘、解譯器與路徑、UM 帳號、代理金鑰),以及一顆按鈕:把 providers.um-genai 寫進 profile patch 並補上模型清單(全新 profile 沒有這段設定,模型選單本來會是空的)。續期看門狗在上游 token 過期時於隱藏 Windows 桌面完成校園 gateway 登入。反代本體是 um_opencode_setup.py(澳門大學校內發放的單檔工具),外掛在 vendor/ 自帶一份讓全新安裝即可運作,而 ~/.um-opencode/ 那份優先;它仍然不產生 token,token 由登入校園 gateway 取得。需要 Windows(進程發現與閒置關閉依賴 netstat/taskkill,續期依賴 PowerShell 與隱藏桌面)、Python 3.10+ 與澳門大學帳號。

插件介绍

管理 DSH 的 um-genai provider 所連的本機 UM GenAI 反代(127.0.0.1:8788)的生命週期:llm/stream 請求進來時按需喚醒、閒置一段時間後關閉、提供健康檢查與唯讀狀態端點。另附 DSH 設定頁(埠號、常駐模式、閒置分鐘、解譯器與路徑、UM 帳號、代理金鑰),以及一顆按鈕:把 providers.um-genai 寫進 profile patch 並補上模型清單(全新 profile 沒有這段設定,模型選單本來會是空的)。續期看門狗在上游 token 過期時於隱藏 Windows 桌面完成校園 gateway 登入。反代本體是 um_opencode_setup.py(澳門大學校內發放的單檔工具),外掛在 vendor/ 自帶一份讓全新安裝即可運作,而 ~/.um-opencode/ 那份優先;它仍然不產生 token,token 由登入校園 gateway 取得。需要 Windows(進程發現與閒置關閉依賴 netstat/taskkill,續期依賴 PowerShell 與隱藏桌面)、Python 3.10+ 與澳門大學帳號。

安装方式

通过 npm 安装

dsh plugin --profile web add dsh-um-proxy-ondemand

Resolves a published tarball rather than cloning the repository, and installs without any extra setup. Swap `web` for your profile name if you run another one.

从 GitHub 安装

dsh plugin --profile web add github:TINGOD2006/dsh-um-proxy-ondemand

Installing from GitHub runs the project's build script, which pnpm blocks until you allowlist it — run the command once and pnpm prints the exact key to add under `allowBuilds` in ~/.dsh/profiles/web/pnpm-workspace.yaml.

版本兼容情况

兼容性待确认。可前往项目文档查看支持版本。

安装提示

  • 可能调用终端命令
  • 可能需要提供凭据