From 68c982ac7dd95f1fc6d37cbba6288d6cfac35cd9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=82=A6=E3=82=A8=E3=82=B9=E3=83=AA=E3=83=BC?= Date: Wed, 14 May 2025 23:33:33 -0700 Subject: [PATCH] fix dumb mistake, fix Ishmael (it is hard not to type '*mail'), remove some test cells --- .../day1-3-fellers-on-the-pequod.ipynb | 60 +++++-------------- 1 file changed, 15 insertions(+), 45 deletions(-) diff --git a/week2/community-contributions/day1-3-fellers-on-the-pequod.ipynb b/week2/community-contributions/day1-3-fellers-on-the-pequod.ipynb index 81d325d..a1ade0f 100644 --- a/week2/community-contributions/day1-3-fellers-on-the-pequod.ipynb +++ b/week2/community-contributions/day1-3-fellers-on-the-pequod.ipynb @@ -77,19 +77,19 @@ "\n", "gpt_system = \"You are third mate of the whaling ship Pequod. Your name is Flask. \\\n", "You approach the practice of whaling as if trying to avenge some deep offense the whales have done to you. \\\n", - "You are chatting with Starbuck (the chief mate) and Ishmail (an oarsman)\"\n", + "You are chatting with Starbuck (the chief mate) and Ishmael (an oarsman)\"\n", "\n", - "claude_system = \"You are the chief mate of the whaling ship Pequod. You are a thoughtful and intellectual \\\n", + "claude_system = \"You are the chief mate of the whaling ship Pequod. Your name is Starbuck. You are a thoughtful and intellectual \\\n", "Quaker from Nantucket who considers it madness to want revenge on an animal. \\\n", - "You are chatting with two other users named Flask (the third mate) and Ishmail (an oarsman). Your name is Starbuck.\"\n", + "You are chatting with two other users named Flask (the third mate) and Ishmael (an oarsman).\"\n", "\n", - "gemini_system = \"You are an oarsman on the Pequod (a whaling ship). You are interested in the history and mechanics \\\n", + "gemini_system = \"You are an oarsman on the Pequod (a whaling ship). They call you Ishmael. You are interested in the history and mechanics \\\n", "of whaling and attempt to promote the nobility of the trade. \\\n", - "You are chatting with two users named Flask (third mate) and Starbuck (the chief mate). Your name is Ishmail\"\n", + "You are chatting with two users named Flask (third mate) and Starbuck (the chief mate).\"\n", "\n", "gpt_messages = [\"Flask: Hi there\"]\n", "claude_messages = [\"Starbuck: Hi\"]\n", - "gemini_messages = [\"Ishmail: Ahoy\"]" + "gemini_messages = [\"Ishmael Ahoy\"]" ] }, { @@ -128,16 +128,6 @@ " return completion.choices[0].message.content" ] }, - { - "cell_type": "code", - "execution_count": null, - "id": "9dc6e913-02be-4eb6-9581-ad4b2cffa606", - "metadata": {}, - "outputs": [], - "source": [ - "call_gpt()" - ] - }, { "cell_type": "code", "execution_count": null, @@ -163,16 +153,6 @@ " return message.content[0].text" ] }, - { - "cell_type": "code", - "execution_count": null, - "id": "01395200-8ae9-41f8-9a04-701624d3fd26", - "metadata": {}, - "outputs": [], - "source": [ - "call_claude()" - ] - }, { "cell_type": "code", "execution_count": null, @@ -196,16 +176,6 @@ " return response.choices[0].message.content" ] }, - { - "cell_type": "code", - "execution_count": null, - "id": "b83c0c0e-5c80-4499-9ca6-d621dca34ddb", - "metadata": {}, - "outputs": [], - "source": [ - "call_gemini()" - ] - }, { "cell_type": "code", "execution_count": null, @@ -213,25 +183,25 @@ "metadata": {}, "outputs": [], "source": [ - "gpt_messages = [\"Ahoy men\"]\n", - "claude_messages = [\"Hello\"]\n", - "gemini_messages = [\"Ahoy! Has seen the white whale?\"]\n", + "gpt_messages = [\"Flask: Ahoy men\"]\n", + "claude_messages = [\"Starbuck: Hello\"]\n", + "gemini_messages = [\"Ishmael: Ahoy! Has seen the White Whale?\"]\n", "\n", - "print(f\"Flask:\\n{gpt_messages[0]}\\n\")\n", - "print(f\"Starbuck:\\n{claude_messages[0]}\\n\")\n", - "print(f\"Ishmail:\\n{gemini_messages[0]}\\n\")\n", + "print(f\"{gpt_messages[0]}\\n\")\n", + "print(f\"{claude_messages[0]}\\n\")\n", + "print(f\"{gemini_messages[0]}\\n\")\n", "\n", "for i in range(5):\n", " gpt_next = call_gpt()\n", - " print(f\"Flask:\\n{gpt_next}\\n\")\n", + " print(f\"{gpt_next}\\n\")\n", " gpt_messages.append(gpt_next)\n", " \n", " claude_next = call_claude()\n", - " print(f\"Starbuck:\\n{claude_next}\\n\")\n", + " print(f\"Starbuck: {claude_next}\\n\")\n", " claude_messages.append(claude_next)\n", "\n", " gemini_next = call_gemini()\n", - " print(f\"Ishmail:\\n{gpt_next}\\n\")\n", + " print(f\"{gemini_next}\\n\")\n", " gemini_messages.append(gemini_next)" ] },