How can I continuously append objects to the messages array in the ChatGPT chat completion API response when integrating it with Yellow Messenger?
Following is a request body of the API I am using:
{
“model”: “gpt-3.5-turbo”,
“messages”: [
{
“role”: “system”,
“content”: “Hello it’s a system message string!”
},
{
“role”: “user”,
“content”: “Hello it’s a user message string!”
},
{
“role”: “assistant”,
“content”: “Hello it’s an api response string!”
},
and it sholud be appending till conversation overs…
]
}