brainy-planet-775
07/20/2023, 11:19 PMgorgeous-telephone-56581
07/20/2023, 11:29 PMgorgeous-telephone-56581
07/20/2023, 11:30 PMbrainy-planet-775
07/20/2023, 11:44 PMgorgeous-telephone-56581
07/20/2023, 11:55 PMjs
let gptThought = ` You must respond in a JSON format like this with no formatting:
{"message": "Hello","nextAction": "askGPT"}
// message is the text you want to send to the client
// nextAction is the next action you want to take. It can be "askGPT" or "endChat"
// AskGPT will ask return the client's response to the GPT-4 model
// endChat will end the chat `
then i take the output and parse it on my end. Make sure to json parse the outputbrainy-planet-775
07/21/2023, 12:02 AMearly-train-33247
07/21/2023, 12:16 AMgorgeous-telephone-56581
07/21/2023, 12:19 AMearly-train-33247
07/21/2023, 12:20 AMjson
{
"manufacturer": "Honda",
"model": "Civic",
"priceRangeMax": 20000,
"milesRangeMax": 35000
}
early-train-33247
07/21/2023, 12:21 AMearly-train-33247
07/21/2023, 12:24 AMearly-train-33247
07/21/2023, 12:25 AMbrainy-planet-775
07/21/2023, 12:27 AMgorgeous-telephone-56581
07/21/2023, 12:27 AMgorgeous-telephone-56581
07/21/2023, 12:28 AMgorgeous-telephone-56581
07/21/2023, 12:28 AMbrainy-planet-775
07/21/2023, 12:29 AMbrainy-planet-775
07/21/2023, 12:29 AM