chore: give more context on events

This commit is contained in:
Raj Sharma 2024-10-06 18:45:39 +05:30
parent c15fc486b0
commit 82ae26930b
1 changed files with 4 additions and 1 deletions

View File

@ -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",