From a5f50ac91bd7c29ef687e382d6f2969c5e369eb2 Mon Sep 17 00:00:00 2001 From: Comfy Org PR Bot Date: Tue, 27 Jan 2026 14:19:01 +0900 Subject: [PATCH] [backport cloud/1.37] feat: add Hugging Face model source support (#8331) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Backport of #8330 to `cloud/1.37` Automatically created by backport workflow. ┆Issue is synchronized with this [Notion page](https://www.notion.so/PR-8331-backport-cloud-1-37-feat-add-Hugging-Face-model-source-support-2f56d73d365081708413c99c384c0806) by [Unito](https://www.unito.io) Co-authored-by: Alexander Brown Co-authored-by: Amp --- src/platform/assets/components/modelInfo/ModelInfoPanel.vue | 6 ++++++ src/platform/assets/utils/assetMetadataUtils.ts | 3 +++ 2 files changed, 9 insertions(+) diff --git a/src/platform/assets/components/modelInfo/ModelInfoPanel.vue b/src/platform/assets/components/modelInfo/ModelInfoPanel.vue index 031c2d02cb..41189b4926 100644 --- a/src/platform/assets/components/modelInfo/ModelInfoPanel.vue +++ b/src/platform/assets/components/modelInfo/ModelInfoPanel.vue @@ -50,6 +50,12 @@ alt="" class="size-4 shrink-0" /> + {{ t('assetBrowser.modelInfo.viewOnSource', { source: sourceName }) }} diff --git a/src/platform/assets/utils/assetMetadataUtils.ts b/src/platform/assets/utils/assetMetadataUtils.ts index acddf4950a..896a526d46 100644 --- a/src/platform/assets/utils/assetMetadataUtils.ts +++ b/src/platform/assets/utils/assetMetadataUtils.ts @@ -72,6 +72,9 @@ export function getAssetDisplayName(asset: AssetItem): string { * @returns The source URL or null if not present/parseable */ export function getAssetSourceUrl(asset: AssetItem): string | null { + if (typeof asset.metadata?.repo_url === 'string') { + return asset.metadata.repo_url + } // Note: Reversed priority for backwards compatibility const sourceArn = asset.metadata?.source_arn ?? asset.user_metadata?.source_arn