fix dumb mistake, fix Ishmael (it is hard not to type '*mail'), remove some test cells
This commit is contained in:
@@ -77,19 +77,19 @@
|
|||||||
"\n",
|
"\n",
|
||||||
"gpt_system = \"You are third mate of the whaling ship Pequod. Your name is Flask. \\\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 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",
|
"\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",
|
"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",
|
"\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",
|
"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",
|
"\n",
|
||||||
"gpt_messages = [\"Flask: Hi there\"]\n",
|
"gpt_messages = [\"Flask: Hi there\"]\n",
|
||||||
"claude_messages = [\"Starbuck: Hi\"]\n",
|
"claude_messages = [\"Starbuck: Hi\"]\n",
|
||||||
"gemini_messages = [\"Ishmail: Ahoy\"]"
|
"gemini_messages = [\"Ishmael Ahoy\"]"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -128,16 +128,6 @@
|
|||||||
" return completion.choices[0].message.content"
|
" 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",
|
"cell_type": "code",
|
||||||
"execution_count": null,
|
"execution_count": null,
|
||||||
@@ -163,16 +153,6 @@
|
|||||||
" return message.content[0].text"
|
" 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",
|
"cell_type": "code",
|
||||||
"execution_count": null,
|
"execution_count": null,
|
||||||
@@ -196,16 +176,6 @@
|
|||||||
" return response.choices[0].message.content"
|
" 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",
|
"cell_type": "code",
|
||||||
"execution_count": null,
|
"execution_count": null,
|
||||||
@@ -213,25 +183,25 @@
|
|||||||
"metadata": {},
|
"metadata": {},
|
||||||
"outputs": [],
|
"outputs": [],
|
||||||
"source": [
|
"source": [
|
||||||
"gpt_messages = [\"Ahoy men\"]\n",
|
"gpt_messages = [\"Flask: Ahoy men\"]\n",
|
||||||
"claude_messages = [\"Hello\"]\n",
|
"claude_messages = [\"Starbuck: Hello\"]\n",
|
||||||
"gemini_messages = [\"Ahoy! Has seen the white whale?\"]\n",
|
"gemini_messages = [\"Ishmael: Ahoy! Has seen the White Whale?\"]\n",
|
||||||
"\n",
|
"\n",
|
||||||
"print(f\"Flask:\\n{gpt_messages[0]}\\n\")\n",
|
"print(f\"{gpt_messages[0]}\\n\")\n",
|
||||||
"print(f\"Starbuck:\\n{claude_messages[0]}\\n\")\n",
|
"print(f\"{claude_messages[0]}\\n\")\n",
|
||||||
"print(f\"Ishmail:\\n{gemini_messages[0]}\\n\")\n",
|
"print(f\"{gemini_messages[0]}\\n\")\n",
|
||||||
"\n",
|
"\n",
|
||||||
"for i in range(5):\n",
|
"for i in range(5):\n",
|
||||||
" gpt_next = call_gpt()\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",
|
" gpt_messages.append(gpt_next)\n",
|
||||||
" \n",
|
" \n",
|
||||||
" claude_next = call_claude()\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",
|
" claude_messages.append(claude_next)\n",
|
||||||
"\n",
|
"\n",
|
||||||
" gemini_next = call_gemini()\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)"
|
" gemini_messages.append(gemini_next)"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user