Skip to content
This repository has been archived by the owner on Jun 22, 2024. It is now read-only.

Commit

Permalink
chore: revert model name change in demo.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
francis2tm committed Jan 26, 2024
1 parent 523cf5c commit fe4f90d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/demo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ async function main() {
// Non-streaming:
/*
const completion = await client.chat.completions.create({
model: 'default',
model: 'gpt-4',
messages: [{ role: 'user', content: 'Say this is a test' }],
});
console.log(completion.choices[0]?.message?.content);
*/

// Streaming:
const stream = await client.chat.completions.create({
model: 'default',
model: 'gpt-4',
messages: [{ role: 'user', content: 'Say this is a test' }],
stream: true,
});
Expand Down

0 comments on commit fe4f90d

Please sign in to comment.