char-fork/llama.cpp
git clone https://git.t4t.associates/char-fork/llama.cpp
01818e495
char/aliceai-t5-moe
1/** 2* Server role enum - used for single/multi-model mode 3*/ 4export enum ServerRole { 5/** Single model mode - server running with a specific model loaded */ 6MODEL = 'model' , 7/** Router mode - server managing multiple model instances */ 8ROUTER = 'router' 9} 10 11/** 12* Model status enum - matches tools/server/server-models.h from C++ server 13* Used as the `value` field in the status object from /models endpoint 14*/ 15export enum ServerModelStatus { 16FAILED = 'failed' , 17LOADED = 'loaded' , 18LOADING = 'loading' , 19SLEEPING = 'sleeping' , 20UNLOADED = 'unloaded' 21} 22 23/** 24* /models/sse event type enum - discriminates the records broadcast on the 25* model status feed in ROUTER mode. Matches the event names emitted by 26* tools/server/server-models.cpp from the C++ server. 27*/ 28export enum ServerModelsSseEventType { 29DOWNLOAD_PROGRESS = 'download_progress' , 30MODEL_REMOVE = 'model_remove' , 31MODEL_STATUS = 'model_status' , 32MODELS_RELOAD = 'models_reload' , 33STATUS_CHANGE = 'status_change' , 34STATUS_UPDATE = 'status_update' 35}