Download apps/vis/server/src/startup-banner.ts from SaylorTwift/kimi-code: direct link, hf CLI and curl.
- Browser
- Download file 540 Bytes
-
https://huggingface.co/SaylorTwift/kimi-code/resolve/main/apps/vis/server/src/startup-banner.ts
- Command line
-
hf download hf://SaylorTwift/kimi-code/apps/vis/server/src/startup-banner.ts
-
curl -L -o startup-banner.ts https://huggingface.co/SaylorTwift/kimi-code/resolve/main/apps/vis/server/src/startup-banner.ts
540 Bytes
| import { hostForUrl } from './config'; | |
| export interface StartupBannerOptions { | |
| readonly authToken?: string; | |
| readonly host: string; | |
| readonly kimiCodeHome: string; | |
| readonly port: number; | |
| } | |
| export function formatStartupBanner(options: StartupBannerOptions): string { | |
| const authStatus = options.authToken === undefined ? 'auth=disabled' : 'auth=required'; | |
| return ( | |
| `[vis-server] listening on http://${hostForUrl(options.host)}:${String(options.port)} ` + | |
| `(${authStatus}, KIMI_CODE_HOME=${options.kimiCodeHome})\n` | |
| ); | |
| } | |