ModelScope 文件树条目(仅取所需字段)。
| 39 | |
| 40 | /** ModelScope 文件树条目(仅取所需字段)。 */ |
| 41 | interface MsFileEntry { |
| 42 | Path: string; |
| 43 | Size: number; |
| 44 | Type: string; |
| 45 | } |
| 46 | |
| 47 | /** 拉取 JSON(跟随 3xx 重定向),用于 ModelScope 文件树 API。 */ |
| 48 | function fetchJson<T>(url: string): Promise<T> { |
nothing calls this directly
no outgoing calls
no test coverage detected