(relativePath: string)
| 308 | // getHuggingFaceImagesPath so there is a single source of truth for it. |
| 309 | const relativePaths = getRelativeHuggingFaceTreePaths(entries, request.treePath); |
| 310 | const fetchText = async (relativePath: string): Promise<string | null> => { |
| 311 | try { |
| 312 | const response = await fetchImpl(joinManifestUrlPath(baseUrl, relativePath)); |
| 313 | return response.ok ? await response.text() : null; |
| 314 | } catch { |
| 315 | return null; |
| 316 | } |
| 317 | }; |
| 318 | const imageSource = await resolveImageSource( |
| 319 | { filePaths: relativePaths, modelDir: modelDir ?? '', fetchText }, |
| 320 | IMAGE_SOURCE_STRATEGIES |
nothing calls this directly
no test coverage detected