Skip to content

five-on-it / apps/api/src/store / PlatformSettings

Interface: PlatformSettings ​

Defined in: apps/api/src/store.ts:586

The platform's settings an admin set at runtime (settings.ts), over the configuration's defaults (FOI_CREATOR_*, FOI_QUOTA_*): each one given replaces its default until it is reset. One record for the whole platform.

Properties ​

concurrency? ​

optional concurrency?: number

Defined in: apps/api/src/store.ts:604

How many creations run at once on the whole platform, at most.


creationBuilds? ​

optional creationBuilds?: number

Defined in: apps/api/src/store.ts:595


creationUsd? ​

optional creationUsd?: number

Defined in: apps/api/src/store.ts:594

What one creation may spend (USD) and the builds it may run, but for an account's override.


defaultModel? ​

optional defaultModel?: string

Defined in: apps/api/src/store.ts:607


modelChoices? ​

optional modelChoices?: string[]

Defined in: apps/api/src/store.ts:606

The models an owner may pick, in order, and the one picked by default.


monthlyUsd? ​

optional monthlyUsd?: number

Defined in: apps/api/src/store.ts:588

The model's hard cap a month (USD).


quotaBuilds? ​

optional quotaBuilds?: number

Defined in: apps/api/src/store.ts:590

Builds, rooms and creations a day, every account's but for an override.


quotaCreations? ​

optional quotaCreations?: number

Defined in: apps/api/src/store.ts:592


quotaRooms? ​

optional quotaRooms?: number

Defined in: apps/api/src/store.ts:591


setAt ​

setAt: string

Defined in: apps/api/src/store.ts:611


setBy ​

setBy: string

Defined in: apps/api/src/store.ts:609

Who changed them last (an admin's account id and name), and when (ISO).


setByName ​

setByName: string

Defined in: apps/api/src/store.ts:610


turnCalls? ​

optional turnCalls?: number

Defined in: apps/api/src/store.ts:599

A turn's caps on the model: its calls, its tokens in and out, the most a call answers with.


turnInputTokens? ​

optional turnInputTokens?: number

Defined in: apps/api/src/store.ts:600


turnMaxTokens? ​

optional turnMaxTokens?: number

Defined in: apps/api/src/store.ts:602


turnMinutes? ​

optional turnMinutes?: number

Defined in: apps/api/src/store.ts:597

The minutes one turn of a creation may run.


turnOutputTokens? ​

optional turnOutputTokens?: number

Defined in: apps/api/src/store.ts:601