/**
 * Client-safe AI defaults shared between server and client code.
 * Server code re-exports these from `@server/config/ai-defaults`
 * for backward compatibility; new client imports should pull from
 * `@/shared/config/ai-defaults` to avoid client↔server layering.
 */

export const REALTIME_MODELS = [
  'gpt-realtime-1.5',
  'gpt-realtime-mini',
  'gpt-realtime',
  'gpt-audio-1.5',
] as const;
export type RealtimeModel = typeof REALTIME_MODELS[number];

export const DEFAULT_REALTIME_MODEL: RealtimeModel = 'gpt-realtime-1.5';
export const DEFAULT_REALTIME_VOICE = 'alloy';
export const DEFAULT_TTS_VOICE = 'nova';

export const VAD_DEFAULTS = {
  threshold: 0.5,
  prefixPaddingMs: 300,
  silenceDurationMs: 600,
} as const;

export const CAPABILITY_KEYS = [
  { key: 'order_taking', label: 'Order Taking' },
  { key: 'reservation_booking', label: 'Reservation Booking' },
  { key: 'escalation', label: 'Escalation to Human' },
  { key: 'kb_search', label: 'Knowledge Base Search' },
  { key: 'loyalty_redemption', label: 'Loyalty Redemption' },
  { key: 'menu_recommendations', label: 'Menu Recommendations' },
] as const;
export type CapabilityKey = typeof CAPABILITY_KEYS[number]['key'];

export const DEFAULT_LLM_MODEL = 'gpt-4o';
export const MAX_COMPLETION_TOKENS = 800;
export const TAX_RATE = 0.08;
