Download packages/coding-agent/src/utils/pi-user-agent.ts from SaylorTwift/pi: direct link, hf CLI and curl.
- Browser
- Download file 235 Bytes
-
https://huggingface.co/SaylorTwift/pi/resolve/main/packages/coding-agent/src/utils/pi-user-agent.ts
- Command line
-
hf download hf://SaylorTwift/pi/packages/coding-agent/src/utils/pi-user-agent.ts
-
curl -L -o pi-user-agent.ts https://huggingface.co/SaylorTwift/pi/resolve/main/packages/coding-agent/src/utils/pi-user-agent.ts
235 Bytes
| export function getPiUserAgent(version: string): string { | |
| const runtime = process.versions.bun ? `bun/${process.versions.bun}` : `node/${process.version}`; | |
| return `pi/${version} (${process.platform}; ${runtime}; ${process.arch})`; | |
| } | |