MCPcopy
hub / github.com/1Panel-dev/MaxKB / pauseDownload

Function pauseDownload

ui/src/api/model/model.ts:139–144  ·  view source on GitHub ↗
(
  model_id,
  loading,
)

Source from the content-addressed store, hash-verified

137 * @returns
138 */
139const pauseDownload: (model_id: string, loading?: Ref<boolean>) => Promise<Result<boolean>> = (
140 model_id,
141 loading,
142) => {
143 return put(`${prefix.value}/model/${model_id}/pause_download`, undefined, {}, loading)
144}
145const deleteModel: (model_id: string, loading?: Ref<boolean>) => Promise<Result<boolean>> = (
146 model_id,
147 loading,

Callers

nothing calls this directly

Calls 1

putFunction · 0.90

Tested by

no test coverage detected