2026-01-04 10:25:19 +09:00
|
|
|
// Centralized localStorage keys for quota tracking and settings
|
|
|
|
|
// Chat data is now stored in IndexedDB via session-storage.ts
|
2025-12-11 14:28:02 +09:00
|
|
|
|
|
|
|
|
export const STORAGE_KEYS = {
|
|
|
|
|
// Quota tracking
|
|
|
|
|
requestCount: "next-ai-draw-io-request-count",
|
|
|
|
|
requestDate: "next-ai-draw-io-request-date",
|
|
|
|
|
tokenCount: "next-ai-draw-io-token-count",
|
|
|
|
|
tokenDate: "next-ai-draw-io-token-date",
|
|
|
|
|
tpmCount: "next-ai-draw-io-tpm-count",
|
|
|
|
|
tpmMinute: "next-ai-draw-io-tpm-minute",
|
|
|
|
|
|
|
|
|
|
// Settings
|
|
|
|
|
accessCode: "next-ai-draw-io-access-code",
|
|
|
|
|
accessCodeRequired: "next-ai-draw-io-access-code-required",
|
|
|
|
|
aiProvider: "next-ai-draw-io-ai-provider",
|
|
|
|
|
aiBaseUrl: "next-ai-draw-io-ai-base-url",
|
|
|
|
|
aiApiKey: "next-ai-draw-io-ai-api-key",
|
|
|
|
|
aiModel: "next-ai-draw-io-ai-model",
|
2025-12-22 22:36:36 +09:00
|
|
|
|
|
|
|
|
// Multi-model configuration
|
|
|
|
|
modelConfigs: "next-ai-draw-io-model-configs",
|
|
|
|
|
selectedModelId: "next-ai-draw-io-selected-model-id",
|
2026-01-11 07:54:32 +06:00
|
|
|
|
|
|
|
|
// Chat input preferences
|
|
|
|
|
sendShortcut: "next-ai-draw-io-send-shortcut",
|
2026-01-20 20:52:04 +09:00
|
|
|
|
|
|
|
|
// Diagram validation
|
|
|
|
|
vlmValidationEnabled: "next-ai-draw-io-vlm-validation-enabled",
|
2026-03-07 19:07:54 +09:00
|
|
|
|
|
|
|
|
// Custom system message
|
|
|
|
|
customSystemMessage: "next-ai-draw-io-custom-system-message",
|
2026-04-03 11:16:01 +08:00
|
|
|
|
2026-08-22 20:47:10 +09:00
|
|
|
// Output token budget per turn (empty = server default)
|
|
|
|
|
maxOutputTokens: "next-ai-draw-io-max-output-tokens",
|
|
|
|
|
|
2026-04-03 11:16:01 +08:00
|
|
|
// Panel visibility
|
|
|
|
|
showRecentChats: "next-ai-draw-io-show-recent-chats",
|
|
|
|
|
showMyTemplates: "next-ai-draw-io-show-my-templates",
|
|
|
|
|
showQuickExamples: "next-ai-draw-io-show-quick-examples",
|
2025-12-11 14:28:02 +09:00
|
|
|
} as const
|