From 82ae26930b50712108444f0f9220d3bb13d973ba Mon Sep 17 00:00:00 2001 From: Raj Sharma Date: Sun, 6 Oct 2024 18:45:39 +0530 Subject: [PATCH] chore: give more context on events --- assistant/system-prompts.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/assistant/system-prompts.ts b/assistant/system-prompts.ts index 1944187..597c5b5 100644 --- a/assistant/system-prompts.ts +++ b/assistant/system-prompts.ts @@ -69,7 +69,10 @@ Ensure responses do not exceed 1500 characters. }, ]; - const events = return_current_events().map((event) => event.eventId); + const events = return_current_events().map((event) => ({ + id: event.eventId, + desc: event.description, + })); const creator_system_messages: OpenAI.ChatCompletionSystemMessageParam[] = [ { role: "system",