Skip to content

ChatGPT API

Kaisheng Su edited this page Sep 25, 2024 · 7 revisions

generatePlan input

A string, containing the string of data from google map api in the form of json, start time of the plan.

Plan Pattern returned by GPT:

{
    plan: {
        day1: {
            activities: [
                {
                    'time': "08:00",
                    'duration': "120",
                    'destination': "X",
                    'destination describ': "X",
                    'destination duration': "60"
                }
            ]
        }
    },
    reply: "XXX"
};

"plan" can contain multiple days. Each day can have multiple activities. "time" is the start time to do the activity. "duration" is the time to get to the destination in minutes. "destination describ" is the description of the destination. "destination duration" is the time staying at the destination in minutes. "reply" is a brief explanation of the plan.

Architecture

Clone this wiki locally