* 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>
23 lines
709 B
TypeScript
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),
|
|
});
|