javascript
const apiKey = 'c78ee25b58304651bfcabe20cf9d24ad';
const apiUrl = 'https://ole-janur.openai.azure.com/v1/completions';

const requestData = {
  prompt: '',
  temperature: 0.7,
  max_tokens: 800,
  top_p: 0.95,
  frequency_penalty: 0,
  presence_penalty: 0,
  stop: ['<|im_end|>'],
  model: 'Chatgpt_jensen',
};

fetch(apiUrl, {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json',
    'Authorization': `Bearer ${apiKey}`,
  },
  body: JSON.stringify(requestData),
})
  .then(response => response.json())
  .then(data => {
    console.log(data);
    // Do something with the response data
  })
  .catch(error => {
    console.error(error);
  });