Spaces:
Runtime error
Runtime error
Download desktop/src/server.d.mts from Nryn215/FreeLLMAPI: direct link, hf CLI and curl.
- Browser
- Download file 703 Bytes
-
https://huggingface.co/spaces/Nryn215/FreeLLMAPI/resolve/main/desktop/src/server.d.mts
- Command line
-
hf download hf://spaces/Nryn215/FreeLLMAPI/desktop/src/server.d.mts
-
curl -L -o server.d.mts https://huggingface.co/spaces/Nryn215/FreeLLMAPI/resolve/main/desktop/src/server.d.mts
703 Bytes
| // Type surface of the esbuild-produced server bundle. At compile time TS | |
| // resolves `./server.mjs` to this declaration; at runtime build/main.mjs | |
| // resolves it to the sibling build/server.mjs (kept external in build:main). | |
| import type { Server } from 'node:http'; | |
| import type Database from 'better-sqlite3'; | |
| export interface StartOptions { | |
| dbPath: string; | |
| clientDist: string; | |
| host: string; | |
| preferredPort: number; | |
| } | |
| export interface ServerHandle { | |
| server: Server; | |
| port: number; | |
| } | |
| export function startServer(opts: StartOptions): Promise<ServerHandle>; | |
| export function ensureSessionToken(): string; | |
| export function getDb(): Database.Database; | |
| export function getUnifiedApiKey(): string; | |