Open-source Grok Bot alternative with a virtual machine that bots can use
TypeScript ai-agentsclaude-codecodexcomputer-usedockerelectrongrokgrok-botgrok-bot-alternativeself-hostedtypescript
export function piModelId(model: unknown): string | null {
const entry = model as { provider?: unknown; id?: unknown } | null | undefined;
return typeof entry?.provider === "string" && entry.provider && typeof entry.id === "string" && entry.id
? `${entry.provider}/${entry.id}` : null;
}