Interface Config

CatAI config, that can be set by env variables

interface Config {
    ADMIN_USE: boolean;
    CATAI_DIR: string;
    DEBUG_MODE?: boolean;
    MODEL_DIR?: string;
    MODEL_INDEX: string;
    OPEN_IN_BROWSER: boolean;
    PORT: number;
    PRODUCTION: boolean;
    SELECTED_UI: string;
    SIMULTANEOUSLY_EXECUTING?: number;
}

Properties

ADMIN_USE: boolean

Whether to use admin features

env: CATAI_ADMIN_USE

CATAI_DIR: string

The directory to store models and other data.

env: CATAI_DIR

DEBUG_MODE?: boolean

Whether to run in debug mode

env: CATAI_DEBUG

MODEL_DIR?: string

The directory to store models

env: CATAI_DIR

MODEL_INDEX: string

The url to the model index, currently fetch from CatAI repo

env: CATAI_MODEL_INDEX

OPEN_IN_BROWSER: boolean

Whether to open the website in the browser

env: CATAI_OPEN_IN_BROWSER

PORT: number

The port to use for the server

env: CATAI_PORT

PRODUCTION: boolean

Whether to run in production mode

env: CATAI_PRODUCTION

SELECTED_UI: string

The web ui to use

env: CATAI_SELECTED_UI

SIMULTANEOUSLY_EXECUTING?: number

The number of models that can be executed simultaneously

env: CATAI_SIMULTANEOUSLY_EXECUTING