Skip to content

Commit 6961c37

Browse files
committed
feat: bump model in all example snippets to gpt-4o
1 parent 12f9334 commit 6961c37

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ const openai = new OpenAI();
173173

174174
async function main() {
175175
const stream = await openai.beta.chat.completions.stream({
176-
model: 'gpt-4',
176+
model: 'gpt-4o',
177177
messages: [{ role: 'user', content: 'Say this is a test' }],
178178
stream: true,
179179
});
@@ -226,7 +226,7 @@ const client = new OpenAI();
226226
async function main() {
227227
const runner = client.beta.chat.completions
228228
.runTools({
229-
model: 'gpt-3.5-turbo',
229+
model: 'gpt-4o',
230230
messages: [{ role: 'user', content: 'How is the weather this week?' }],
231231
tools: [
232232
{
@@ -368,7 +368,7 @@ Error codes are as followed:
368368
All object responses in the SDK provide a `_request_id` property which is added from the `x-request-id` response header so that you can quickly log failing requests and report them back to OpenAI.
369369

370370
```ts
371-
const completion = await client.chat.completions.create({ messages: [{ role: 'user', content: 'Say this is a test' }], model: 'gpt-4' });
371+
const completion = await client.chat.completions.create({ messages: [{ role: 'user', content: 'Say this is a test' }], model: 'gpt-4o' });
372372
console.log(completion._request_id) // req_123
373373
```
374374

@@ -392,7 +392,7 @@ const azureADTokenProvider = getBearerTokenProvider(credential, scope);
392392
const openai = new AzureOpenAI({ azureADTokenProvider });
393393

394394
const result = await openai.chat.completions.create({
395-
model: 'gpt-4-1106-preview',
395+
model: 'gpt-4o',
396396
messages: [{ role: 'user', content: 'Say hello!' }],
397397
});
398398

0 commit comments

Comments
 (0)