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 { atom } from 'jotai';
import { atomFamily } from 'jotai/utils';
import type { TPreset } from 'librechat-data-provider';
import type { PrimitiveAtom } from 'jotai';
import type { Family } from '../steer/family';
/** The preset applied to one chat pane, keyed by pane index. */
export const presetFamily: Family<
TPreset | null,
PrimitiveAtom<TPreset | null>,
string | number
> = atomFamily((_index: string | number) => atom<TPreset | null>(null));