Download tools/server/webui/src/lib/enums/server.ts from OpenTransformer/llama.cpp-prismml: direct link, hf CLI and curl.
- Browser
- Download file 538 Bytes
-
https://huggingface.co/OpenTransformer/llama.cpp-prismml/resolve/main/tools/server/webui/src/lib/enums/server.ts
- Command line
-
hf download hf://OpenTransformer/llama.cpp-prismml/tools/server/webui/src/lib/enums/server.ts
-
curl -L -o server.ts https://huggingface.co/OpenTransformer/llama.cpp-prismml/resolve/main/tools/server/webui/src/lib/enums/server.ts
538 Bytes
| /** | |
| * 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 { | |
| UNLOADED = 'unloaded', | |
| LOADING = 'loading', | |
| LOADED = 'loaded', | |
| FAILED = 'failed' | |
| } | |