// nextjs route POST method return value
return createDataStreamResponse({
headers: {
'x-vercel-ai-data-stream': 'v1',
'Transfer-Encoding': 'chunked',
Connection: 'keep-alive',
'X-Accel-Buffering': 'no',
'Content-Type': 'text/plain; charset=utf-8',
},
// nextjs route POST method return value
return createDataStreamResponse({
headers: {
'x-vercel-ai-data-stream': 'v1',
'Transfer-Encoding': 'chunked',
Connection: 'keep-alive',
'X-Accel-Buffering': 'no',
'Content-Type': 'text/plain; charset=utf-8',
},