jan/web/app/_models/hf/ListModelOutput.hf.ts
James 6f50424917 allow user to query for HF models
Signed-off-by: James <james@jan.ai>
2023-10-06 16:46:47 +07:00

25 lines
427 B
TypeScript

import { Task } from "./SearchModelParam.hf";
export type ListModelOutputHf = {
id: string;
name: string;
private: boolean;
task: Task;
downloads: number;
gated: boolean;
likes: number;
updatedAt?: number | null;
files: Map<string, FileInfo>;
};
export type FileInfo = {
type: string;
oid: string;
size: number;
lfs: Map<string, unknown>;
path: string;
etag: string;
downloadLink: string;
};