Enhanced ChatGPT Clone: Features Agents, MCP, Skills, DeepSeek, Anthropic, AWS, OpenAI, Responses API, Azure, Groq, o1, GPT-5, Mistral, OpenRouter, Vertex AI, Gemini, Artifacts, AI model switching, message search, Code Interpreter, langchain, DALL-E-3, OpenAPI Actions, Functions, Secure Multi-User Auth, Presets, open-source for self-hosting. Active
TypeScript aianthropicartifactsawsazurechatgptchatgpt-cloneclaudeclonedeepseekgeminigooglegpt-5librechatmcpo1openairesponses-apivisionwebui
/**
* Age of a generation computed entirely on this process's clock, for status
* responses whose clients rebuild a clock-local elapsed baseline instead of
* comparing timestamps across machines. Clamped: a job stamped by a replica
* whose clock ran ahead of this one must never report a negative age.
*/
export function getGenerationElapsedMs(job: { createdAt: number }): number {
return Math.max(0, Date.now() - job.createdAt);
}