MiniSearch / shared /serverConfig.ts
github-actions[bot]
Sync from https://github.com/felladrin/MiniSearch
a9fbc84
Raw
History Blame Contribute Delete
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";