Skip to content

Commit

Permalink
docs(readme): remove redundant whitespace (#427)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-bot authored Nov 5, 2023
1 parent e0138e8 commit aa3a178
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit aa3a178

Please sign in to comment.