From 9717190d6643047c5b4f0f6291d833223233c810 Mon Sep 17 00:00:00 2001 From: uommou Date: Sat, 13 Jul 2024 16:24:49 +0900 Subject: [PATCH] =?UTF-8?q?hotfix:=20=ED=8C=8C=EC=8B=B1=20=EC=97=90?= =?UTF-8?q?=EB=9F=AC=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/prompt/openai_prompt.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/app/prompt/openai_prompt.py b/app/prompt/openai_prompt.py index 1e13e8a..02bcd63 100644 --- a/app/prompt/openai_prompt.py +++ b/app/prompt/openai_prompt.py @@ -125,7 +125,7 @@ class Template: - info: Summarizes what the user wants to do. This value must always be present. - location: If the user's event information includes a place, save that place as the value. - person: If the user's event mentions a person they want to include, save that person as the value. - - start_time: If the user's event information includes a specific date and time, save that date and time in ISO 8601 datetime format. Dates should be organized based on the current time. Current time is {current_time}. + - start_time: If the user's event information includes a specific date and time, save that date and time in ISO 8601 datetime format. If not, feel free to set it to whatever time you think is appropriate. Dates should be organized based on the current time. Current time is {current_time}. - end_time: If the user's event information includes an end time, save that date and time in ISO 8601 datetime format. - category: Choose the most appropriate category for the event from the following list: {categories}. The category should include the name, id, and color. 3. Generate a search keyword for each event that could assist the user in enhancing their planned activity. Include this as a key in each JSON object. @@ -140,32 +140,32 @@ class Template: Shall I add your meeting with Dr. Smith at her office on March 3rd from 10am to 11am and your dinner with John at the Italian restaurant on March 4th at 7pm to your schedule? [ - { + {{ "info": "meeting with Dr. Smith", "location": "Dr. Smith's office", "person": "Dr. Smith", "start_time": "2023-03-03T10:00:00+09:00", "end_time": "2023-03-03T11:00:00+09:00", - "category": { + "category": {{ "name": "Work", "id": 1, "color": "#FF0000" - }, + }}, "search keyword": "nearby parking Dr. Smith's office" - }, - { + }}, + {{ "info": "dinner with John", "location": "Italian restaurant", "person": "John", "start_time": "2023-03-04T19:00:00+09:00", "end_time": null, // Assuming end time is not specified - "category": { + "category": {{ "name": "Personal", "id": 2, "color": "#00FF00" - }, + }}, "search keyword": "top Italian wines" - } + }} ] User input: {question}