From aa3a1782914a4a285263e4d070bca73e72ed47ec Mon Sep 17 00:00:00 2001 From: Stainless Bot <107565488+stainless-bot@users.noreply.github.com> Date: Sun, 5 Nov 2023 14:15:04 +0000 Subject: [PATCH] docs(readme): remove redundant whitespace (#427) --- README.md | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/README.md b/README.md index 8f9808973..9de4dccb7 100644 --- a/README.md +++ b/README.md @@ -38,8 +38,6 @@ async function main() { messages: [{ role: 'user', content: 'Say this is a test' }], model: 'gpt-3.5-turbo', }); - - console.log(chatCompletion.choices); } main(); @@ -261,7 +259,6 @@ async function main() { if (err instanceof OpenAI.APIError) { console.log(err.status); // 400 console.log(err.name); // BadRequestError - console.log(err.headers); // {server: 'nginx', ...} } else { throw err; @@ -388,7 +385,7 @@ const { data: chatCompletion, response: raw } = await openai.chat.completions .create({ messages: [{ role: 'user', content: 'Say this is a test' }], model: 'gpt-3.5-turbo' }) .withResponse(); console.log(raw.headers.get('X-My-Header')); -console.log(chatCompletion.choices); +console.log(chatCompletion); ``` ## Customizing the fetch client