gijl/lv-storage / llama.cpp /tools /ui /src /lib /enums /server.enums.ts
gijl's picture
download
raw
1.36 kB
/**
* Server role enum - used for single/multi-model mode
*/
export enum ServerRole {
/** Single model mode - server running with a specific model loaded */
MODEL = 'model',
/** Router mode - server managing multiple model instances */
ROUTER = 'router'
}
/**
* Model status enum - matches tools/server/server-models.h from C++ server
* Used as the `value` field in the status object from /models endpoint
*/
export enum ServerModelStatus {
DOWNLOAD_FAILED = 'download_failed',
DOWNLOAD_FINISHED = 'download_finished',
DOWNLOADED = 'downloaded',
DOWNLOADING = 'downloading',
FAILED = 'failed',
/** A download that never finished: listed by the server without an instance, resumable. */
INCOMPLETE = 'incomplete',
LOADED = 'loaded',
LOADING = 'loading',
SLEEPING = 'sleeping',
UNLOADED = 'unloaded'
}
/**
* /models/sse event type enum - discriminates the records broadcast on the
* model status feed in ROUTER mode. Matches the event names emitted by
* tools/server/server-models.cpp from the C++ server.
*/
export enum ServerModelsSseEventType {
DOWNLOAD_FAILED = 'download_failed',
DOWNLOAD_FINISHED = 'download_finished',
DOWNLOAD_PROGRESS = 'download_progress',
MODEL_REMOVE = 'model_remove',
MODEL_STATUS = 'model_status',
MODELS_RELOAD = 'models_reload',
STATUS_CHANGE = 'status_change',
STATUS_UPDATE = 'status_update'
}

Xet Storage Details

Size:
1.36 kB
·
Xet hash:
b65aaab4ff346d8bcf32ab60c9f9c0c0ebf5fe6f21e122495d6ca89449621cad

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.