An AI-powered search engine with a generative UI
TypeScript generative-aigenerative-uinextjsollamareactsearxngshadcn-uitailwindcsstavilytypescriptupstashvercel-ai-sdk
style: apply prettier formatting
Yoshiki Miura1fe38040bbc5
diff --git a/lib/actions/chat.ts b/lib/actions/chat.tsindex 9b6d95b8..444e5bf7 100644--- a/lib/actions/chat.ts+++ b/lib/actions/chat.ts@@ -149,13 +149,13 @@ export async function createChatWithFirstMessage(/*** Upsert a message to a chat* @param userId - Required but not used for access check (assumes already authorized)- *+ ** IMPORTANT: This function assumes the caller has already performed authorization checks.* It is only called from:* 1. API routes after authentication (app/api/chat/route.ts)* 2. Stream handlers after chat ownership verification* 3. Internal functions that have already verified access- *+ ** DO NOT call this function directly from untrusted contexts.*/export async function upsertMessage(diff --git a/lib/utils/perf-tracking.ts b/lib/utils/perf-tracking.tsindex 0a685d25..bc6d7b90 100644--- a/lib/utils/perf-tracking.ts+++ b/lib/utils/perf-tracking.ts@@ -1,13 +1,13 @@/*** Performance tracking utilities for DEVELOPMENT ONLY- *+ ** WARNING: These global counters are not thread-safe and should only be used* for debugging in development environments with ENABLE_PERF_LOGGING=true.- *+ ** In production, these counters are not used as performance logging is disabled.* The global state will cause issues with concurrent requests, but this is* acceptable for local development debugging.- *+ ** DO NOT use these counters for any production logic or metrics.*/