Download packages/core/src/github-copilot/chat/get-response-metadata.ts from SaylorTwift/opencode: direct link, hf CLI and curl.
- Browser
- Download file 327 Bytes
-
https://huggingface.co/SaylorTwift/opencode/resolve/main/packages/core/src/github-copilot/chat/get-response-metadata.ts
- Command line
-
hf download hf://SaylorTwift/opencode/packages/core/src/github-copilot/chat/get-response-metadata.ts
-
curl -L -o get-response-metadata.ts https://huggingface.co/SaylorTwift/opencode/resolve/main/packages/core/src/github-copilot/chat/get-response-metadata.ts
327 Bytes
| export function getResponseMetadata({ | |
| id, | |
| model, | |
| created, | |
| }: { | |
| id?: string | undefined | null | |
| created?: number | undefined | null | |
| model?: string | undefined | null | |
| }) { | |
| return { | |
| id: id ?? undefined, | |
| modelId: model ?? undefined, | |
| timestamp: created != null ? new Date(created * 1000) : undefined, | |
| } | |
| } | |