Download src/commands/extra-usage/extra-usage-noninteractive.ts from chenbhao/codev: direct link, hf CLI and curl.
- Browser
- Download file 466 Bytes
-
https://huggingface.co/chenbhao/codev/resolve/e91c8197c9918ff9e5df3140e8c36282bb30e9a2/src/commands/extra-usage/extra-usage-noninteractive.ts
- Command line
-
hf download hf://chenbhao/codev@e91c8197c9918ff9e5df3140e8c36282bb30e9a2/src/commands/extra-usage/extra-usage-noninteractive.ts
-
curl -L -o extra-usage-noninteractive.ts https://huggingface.co/chenbhao/codev/resolve/e91c8197c9918ff9e5df3140e8c36282bb30e9a2/src/commands/extra-usage/extra-usage-noninteractive.ts
466 Bytes
| import { runExtraUsage } from './extra-usage-core.js' | |
| export async function call(): Promise<{ type: 'text'; value: string }> { | |
| const result = await runExtraUsage() | |
| if (result.type === 'message') { | |
| return { type: 'text', value: result.value } | |
| } | |
| return { | |
| type: 'text', | |
| value: result.opened | |
| ? `Browser opened to manage extra usage. If it didn't open, visit: ${result.url}` | |
| : `Please visit ${result.url} to manage extra usage.`, | |
| } | |
| } | |