Spaces:
Paused
Paused
Download shared/serverConfig.ts from Nymbo/MiniSearch: direct link, hf CLI and curl.
- Browser
- Download file 691 Bytes
-
https://huggingface.co/spaces/Nymbo/MiniSearch/resolve/main/shared/serverConfig.ts
- Command line
-
hf download hf://spaces/Nymbo/MiniSearch/shared/serverConfig.ts
-
curl -L -o serverConfig.ts https://huggingface.co/spaces/Nymbo/MiniSearch/resolve/main/shared/serverConfig.ts
691 Bytes
| export interface ServerConfig { | |
| accessKeysEnabled: boolean; | |
| accessKeyTimeoutHours: number; | |
| wllamaDefaultModelId: string; | |
| internalApiEnabled: boolean; | |
| internalApiName: string; | |
| defaultInferenceType: string; | |
| /** The CSRF token to hash into the `?token=` of every request to this server. */ | |
| searchToken: string; | |
| } | |
| /** | |
| * Values used when the matching environment variable is unset. These mirror | |
| * `.env.example` and are the single source of truth for both the server | |
| * response and the client-side fallback. | |
| */ | |
| export const DEFAULT_WLLAMA_MODEL_ID = "littlelamb-290m"; | |
| export const DEFAULT_INFERENCE_TYPE = "browser"; | |
| export const DEFAULT_INTERNAL_API_NAME = "Internal API"; | |