add share_time toggle — user-controlled time context, opt-out in settings
This commit is contained in:
+11
-2
@@ -25,8 +25,15 @@ export const api = {
|
||||
request<{ deleted: string }>(`/conversations/${id}`, { method: 'DELETE' }),
|
||||
clearAllConversations: () =>
|
||||
request<{ cleared: boolean }>('/conversations', { method: 'DELETE' }),
|
||||
sendMessage: (message: string, conversation_id: string) =>
|
||||
request<ChatResponse>('/chat', { method: 'POST', body: JSON.stringify({ message, conversation_id }) }),
|
||||
sendMessage: (message: string, conversation_id: string, share_time = true) =>
|
||||
request<ChatResponse>('/chat', {
|
||||
method: 'POST',
|
||||
body: JSON.stringify({
|
||||
message,
|
||||
conversation_id,
|
||||
...(share_time ? { client_time: new Date().toISOString() } : {}),
|
||||
}),
|
||||
}),
|
||||
getMemory: () => request<{ content: string }>('/memory'),
|
||||
updateMemory: (content: string) =>
|
||||
request<{ saved: boolean }>('/memory', { method: 'POST', body: JSON.stringify({ content }) }),
|
||||
@@ -73,6 +80,7 @@ export interface Settings {
|
||||
font_size: 'small' | 'medium' | 'large';
|
||||
web_search: boolean;
|
||||
show_sources: boolean;
|
||||
share_time: boolean;
|
||||
dream_hour_utc: number;
|
||||
dream_minute_utc: number;
|
||||
dream_mode: string;
|
||||
@@ -106,6 +114,7 @@ export interface DreamerStatus {
|
||||
export interface Status {
|
||||
aaron_ai: string;
|
||||
watcher: string;
|
||||
watcher_ingestion?: { status: string; message: string; file_count: number };
|
||||
chunk_count: number;
|
||||
file_count: number;
|
||||
last_indexed: string;
|
||||
|
||||
Reference in New Issue
Block a user