Download src/node-host/gateway-platform-identity.ts from SaylorTwift/openclaw: direct link, hf CLI and curl.
- Browser
- Download file 581 Bytes
-
https://huggingface.co/SaylorTwift/openclaw/resolve/main/src/node-host/gateway-platform-identity.ts
- Command line
-
hf download hf://SaylorTwift/openclaw/src/node-host/gateway-platform-identity.ts
-
curl -L -o gateway-platform-identity.ts https://huggingface.co/SaylorTwift/openclaw/resolve/main/src/node-host/gateway-platform-identity.ts
581 Bytes
| import { resolveMachineModelIdentifier } from "../infra/machine-model.js"; | |
| import { resolveGatewayClientPlatformIdentity } from "../shared/gateway-client-platform.js"; | |
| export function resolveNodeHostGatewayPlatformIdentity( | |
| platform: NodeJS.Platform, | |
| resolveModel = resolveMachineModelIdentifier, | |
| ): { | |
| platform: string; | |
| deviceFamily?: string; | |
| modelIdentifier?: string; | |
| } { | |
| const modelIdentifier = resolveModel(platform); | |
| const identity = resolveGatewayClientPlatformIdentity(platform); | |
| return identity.deviceFamily ? { ...identity, modelIdentifier } : identity; | |
| } | |