jan/web/app/_models/Product.ts
NamH 26f732d541
Add model screen and refactoring (#242)
* Add model screen and refactoring

Signed-off-by: James <james@jan.ai>
2023-10-02 10:10:32 -07:00

37 lines
961 B
TypeScript

import { ProductInput } from "./ProductInput";
import { ProductOutput } from "./ProductOutput";
export enum ProductType {
LLM = "LLM",
GenerativeArt = "GenerativeArt",
ControlNet = "ControlNet",
}
export interface Product {
id: string;
slug: string;
name: string;
description: string;
avatarUrl: string;
longDescription: string;
technicalDescription: string;
author: string;
version: string;
modelUrl: string;
nsfw: boolean;
greeting: string;
type: ProductType;
inputs?: ProductInput;
outputs?: ProductOutput;
createdAt: number;
updatedAt?: number;
fileName?: string;
downloadUrl?: string;
accelerated: boolean; // TODO: add this in the database
totalSize: number; // TODO: add this in the database
format: string; // TODO: add this in the database // GGUF or something else
status: string; // TODO: add this in the database // Downloaded, Active
releaseDate: number; // TODO: add this in the database
}