Skip to content

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

570 B
Raw Blame
import { atom } from 'jotai';
import { atomFamily } from 'jotai/utils';
import type { PrimitiveAtom } from 'jotai';
import type { Family } from '../steer/family';

/** Legacy per-pane option toggles (examples, code chat). */
export type PaneOptionSettings = {
  showExamples?: boolean;
  isCodeChat?: boolean;
};

/** Option toggles of one chat pane, keyed by pane index. */
export const optionSettingsFamily: Family<
  PaneOptionSettings,
  PrimitiveAtom<PaneOptionSettings>,
  string | number
> = atomFamily((_index: string | number) => atom<PaneOptionSettings>({}));