From fa64c4942fe9eaf0ee7493bf94f4cec2ac07839c Mon Sep 17 00:00:00 2001 From: Adekunle Date: Mon, 28 Jul 2025 20:34:37 +0100 Subject: [PATCH] chore: update assistant examples to use gpt-4o instead of gpt-4-1106-preview --- examples/assistant-stream-raw.ts | 2 +- examples/assistant-stream.ts | 2 +- examples/assistants.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/assistant-stream-raw.ts b/examples/assistant-stream-raw.ts index 399064807..3af54e6ae 100755 --- a/examples/assistant-stream-raw.ts +++ b/examples/assistant-stream-raw.ts @@ -6,7 +6,7 @@ const openai = new OpenAI(); async function main() { const assistant = await openai.beta.assistants.create({ - model: 'gpt-4-1106-preview', + model: 'gpt-4o', name: 'Math Tutor', instructions: 'You are a personal math tutor. Write and run code to answer math questions.', }); diff --git a/examples/assistant-stream.ts b/examples/assistant-stream.ts index d1d5b040f..2d6e951a7 100755 --- a/examples/assistant-stream.ts +++ b/examples/assistant-stream.ts @@ -10,7 +10,7 @@ const openai = new OpenAI(); async function main() { const assistant = await openai.beta.assistants.create({ - model: 'gpt-4-1106-preview', + model: 'gpt-4o', name: 'Math Tutor', instructions: 'You are a personal math tutor. Write and run code to answer math questions.', }); diff --git a/examples/assistants.ts b/examples/assistants.ts index 40238ac86..5756343ca 100755 --- a/examples/assistants.ts +++ b/examples/assistants.ts @@ -10,7 +10,7 @@ const openai = new OpenAI(); async function main() { const assistant = await openai.beta.assistants.create({ - model: 'gpt-4-1106-preview', + model: 'gpt-4o', name: 'Math Tutor', instructions: 'You are a personal math tutor. Write and run code to answer math questions.', // tools = [],