From d81c05da16926c3080ed605cfce1b606d14db983 Mon Sep 17 00:00:00 2001 From: misi Date: Sun, 19 Oct 2025 21:26:04 +1300 Subject: [PATCH 1/2] The model 'claude-3-5-sonnet-20240620' is deprecated and will reach end-of-life on October 22, 2025., giving error message of using it. --- week6/day4.ipynb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/week6/day4.ipynb b/week6/day4.ipynb index 56885b5..304f1d1 100644 --- a/week6/day4.ipynb +++ b/week6/day4.ipynb @@ -208,7 +208,7 @@ "source": [ "# First let's work on a good prompt for a Frontier model\n", "# Notice that I'm removing the \" to the nearest dollar\"\n", - "# When we train our own models, we'll need to make the problem as easy as possible, \n", + "# When we train our own models, we'll need to make the problem as easy as possible,\n", "# but a Frontier model needs no such simplification.\n", "\n", "def messages_for(item):\n", @@ -277,7 +277,7 @@ "\n", "def gpt_4o_mini(item):\n", " response = openai.chat.completions.create(\n", - " model=\"gpt-4o-mini\", \n", + " model=\"gpt-4o-mini\",\n", " messages=messages_for(item),\n", " seed=42,\n", " max_tokens=5\n", @@ -315,7 +315,7 @@ "source": [ "def gpt_4o_frontier(item):\n", " response = openai.chat.completions.create(\n", - " model=\"gpt-4o-2024-08-06\", \n", + " model=\"gpt-4o-2024-08-06\",\n", " messages=messages_for(item),\n", " seed=42,\n", " max_tokens=5\n", @@ -350,7 +350,7 @@ " system_message = messages[0]['content']\n", " messages = messages[1:]\n", " response = claude.messages.create(\n", - " model=\"claude-3-5-sonnet-20240620\",\n", + " model=\"claude-sonnet-4-5-20250929\",\n", " max_tokens=5,\n", " system=system_message,\n", " messages=messages\n", From 8b29b08310a8510e09f0b80902bd6d73201db42e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mih=C3=A1ly=20Hazag?= Date: Sun, 19 Oct 2025 21:35:22 +1300 Subject: [PATCH 2/2] Fix formatting in day4.ipynb for consistency --- week6/day4.ipynb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/week6/day4.ipynb b/week6/day4.ipynb index 304f1d1..301fc27 100644 --- a/week6/day4.ipynb +++ b/week6/day4.ipynb @@ -208,7 +208,7 @@ "source": [ "# First let's work on a good prompt for a Frontier model\n", "# Notice that I'm removing the \" to the nearest dollar\"\n", - "# When we train our own models, we'll need to make the problem as easy as possible,\n", + "# When we train our own models, we'll need to make the problem as easy as possible, \n", "# but a Frontier model needs no such simplification.\n", "\n", "def messages_for(item):\n", @@ -277,7 +277,7 @@ "\n", "def gpt_4o_mini(item):\n", " response = openai.chat.completions.create(\n", - " model=\"gpt-4o-mini\",\n", + " model=\"gpt-4o-mini\", \n", " messages=messages_for(item),\n", " seed=42,\n", " max_tokens=5\n", @@ -315,7 +315,7 @@ "source": [ "def gpt_4o_frontier(item):\n", " response = openai.chat.completions.create(\n", - " model=\"gpt-4o-2024-08-06\",\n", + " model=\"gpt-4o-2024-08-06\", \n", " messages=messages_for(item),\n", " seed=42,\n", " max_tokens=5\n",