Skip to content

Commit

Permalink
hotfix: 파싱 에러 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
uommou committed Jul 13, 2024
1 parent 8382974 commit 9717190
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions app/prompt/openai_prompt.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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?
<separate>
[
{
{{
"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}
Expand Down

0 comments on commit 9717190

Please sign in to comment.