Hey, I am using cURL and I want to get line breaks from the response of the API answers. For example an answer with a bullet point list. How can I achieve this?
My code (using GuzzleHttp):
$client->request('POST', 'https://api.openai.com/v1/chat/completions', [
'body' => '{"model": "gpt-3.5-turbo", "messages": [{"role": "system", "content": "You are a helpful assistant."},{"role": "user", "content": "Give me 3 points why sport is good."}], "temperature": 0.5,
"max_tokens": 500,
"top_p": 1.0,
"frequency_penalty": 0.0,
"presence_penalty": 0.0}',
'headers' => [
'Content-Type' => 'application/json',
'Authorization' => "Bearer XY"
],
]);