jan/web-client/app/_models/Product.ts
hiento09 86f0ffc7d1
Chore/disable submodule (#56)
* Chore disable git submodule for web-client and app-backend

* Chore add newest source code of app-backend and web-client

---------

Co-authored-by: Hien To <tominhhien97@gmail.com>
2023-09-05 16:29:07 +07:00

23 lines
709 B
TypeScript

import { types } from "mobx-state-tree";
import { InputModel } from "./Input";
import { OutputModel } from "./Output";
export enum AiModelType {
LLM = "LLM",
GenerativeArt = "GenerativeArt",
ControlNet = "ControlNet",
}
export const Product = types.model("Product", {
id: types.string, // TODO change to slug
name: types.string,
type: types.enumeration(Object.values(AiModelType)),
description: types.maybeNull(types.string),
avatarUrl: types.maybeNull(types.string),
modelVersion: types.maybeNull(types.string),
modelUrl: types.maybeNull(types.string),
modelDescription: types.maybeNull(types.string),
input: types.maybeNull(InputModel),
output: types.maybeNull(OutputModel),
});