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
import type { TurnServices } from '@librechat/chat/react';
/** Turn services with no app behind them, for specs that mock `~/hooks/Chat/services` because
* they exercise the chat hooks without a router, query client or agent settings. */
export const createTestTurnServices = (): TurnServices => ({
logger: { log: jest.fn(), dir: jest.fn(), warn: jest.fn() },
isTemporary: false,
getEndpointsConfig: () => undefined,
getEphemeralAgent: () => null,
getSender: () => 'Assistant',
getUserKey: () => undefined,
getRouteProjectId: () => null,
isHistoryRevalidating: () => false,
resolveCode: () => null,
resolveReasoning: () => ({ reasoningOverride: undefined, retryable: false }),
openNewChat: jest.fn(),
releaseFiles: jest.fn(),
clearFilesToDelete: jest.fn(),
bindResponse: jest.fn(),
focusResponse: jest.fn(),
bindLaunch: jest.fn(),
});