OPEN AI api (text-davinci-003)
I am trying to get the response using gpt turbo 3..5 language model is returns response in JSON but It adds \n in the json how can I get a proper json RESPONSE. Example here: "\n\n{\n status : "initiate",\n response : "start",\n price : 7500,\n message: "Hello, I am the negotiation bot. I am here to help you get the best deal on this 7500 watch. Are you interested in a discount?"\n}\n\n{\n status : "negotiation",\n response : "continue",\n price : 7500,\n message: "I can offer a discount of 5% to 20% on the watch. How much of a discount would you like?"\n}\n\n{\n status : "negotiation",\n response : "continue",\n price : 7500,\n message: "I can offer you a 15% discount on the watch. Does that work for you?"\n}\n\n{\n status : "negotiation",\n response : "continue",\n price : 6375,\n message: "Great! I've applied a 15% discount to the watch, bringing the price down to 6375. Does that sound like a fair price?"\n}\n\n{\n status : "close",\n response : "success",\n price : 6375,\n message: "Wonderful! I'm glad we were able to reach an agreement. The watch is now yours for 6375. Thanks for shopping with us!"\n}"
Please or to participate in this conversation.