You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/platform/assets/services/assetService.ts
+9-4Lines changed: 9 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -13,6 +13,7 @@ import { useModelToNodeStore } from '@/stores/modelToNodeStore'
13
13
constASSETS_ENDPOINT='/assets'
14
14
constMODELS_TAG='models'
15
15
constMISSING_TAG='missing'
16
+
constEXPERIMENTAL_WARNING=`EXPERIMENTAL: If you are seeing this please make sure "Comfy.Assets.UseAssetAPI" is set to "false" in your ComfyUI Settings.\n`
16
17
17
18
/**
18
19
* Input names that are eligible for asset browser
@@ -27,7 +28,9 @@ function validateAssetResponse(data: unknown): AssetResponse {
27
28
if(result.success)returnresult.data
28
29
29
30
consterror=fromZodError(result.error)
30
-
thrownewError(`Invalid asset response against zod schema:\n${error}`)
31
+
thrownewError(
32
+
`${EXPERIMENTAL_WARNING}Invalid asset response against zod schema:\n${error}`
33
+
)
31
34
}
32
35
33
36
/**
@@ -45,7 +48,7 @@ function createAssetService() {
45
48
constres=awaitapi.fetchApi(url)
46
49
if(!res.ok){
47
50
thrownewError(
48
-
`Unable to load ${context}: Server returned ${res.status}. Please try again.`
51
+
`${EXPERIMENTAL_WARNING}Unable to load ${context}: Server returned ${res.status}. Please try again.`
49
52
)
50
53
}
51
54
constdata=awaitres.json()
@@ -174,7 +177,7 @@ function createAssetService() {
0 commit comments