mirror of
https://github.com/DayuanJiang/next-ai-draw-io.git
synced 2026-01-02 22:32:27 +08:00
28 lines
1020 B
TypeScript
28 lines
1020 B
TypeScript
|
|
// Centralized localStorage keys
|
||
|
|
// Consolidates all storage keys from chat-panel.tsx and settings-dialog.tsx
|
||
|
|
|
||
|
|
export const STORAGE_KEYS = {
|
||
|
|
// Chat data
|
||
|
|
messages: "next-ai-draw-io-messages",
|
||
|
|
xmlSnapshots: "next-ai-draw-io-xml-snapshots",
|
||
|
|
diagramXml: "next-ai-draw-io-diagram-xml",
|
||
|
|
sessionId: "next-ai-draw-io-session-id",
|
||
|
|
|
||
|
|
// 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",
|
||
|
|
closeProtection: "next-ai-draw-io-close-protection",
|
||
|
|
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",
|
||
|
|
} as const
|