Fix formatting in day4.ipynb for consistency
This commit is contained in:
@@ -208,7 +208,7 @@
|
|||||||
"source": [
|
"source": [
|
||||||
"# First let's work on a good prompt for a Frontier model\n",
|
"# First let's work on a good prompt for a Frontier model\n",
|
||||||
"# Notice that I'm removing the \" to the nearest dollar\"\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",
|
"# but a Frontier model needs no such simplification.\n",
|
||||||
"\n",
|
"\n",
|
||||||
"def messages_for(item):\n",
|
"def messages_for(item):\n",
|
||||||
@@ -277,7 +277,7 @@
|
|||||||
"\n",
|
"\n",
|
||||||
"def gpt_4o_mini(item):\n",
|
"def gpt_4o_mini(item):\n",
|
||||||
" response = openai.chat.completions.create(\n",
|
" response = openai.chat.completions.create(\n",
|
||||||
" model=\"gpt-4o-mini\",\n",
|
" model=\"gpt-4o-mini\", \n",
|
||||||
" messages=messages_for(item),\n",
|
" messages=messages_for(item),\n",
|
||||||
" seed=42,\n",
|
" seed=42,\n",
|
||||||
" max_tokens=5\n",
|
" max_tokens=5\n",
|
||||||
@@ -315,7 +315,7 @@
|
|||||||
"source": [
|
"source": [
|
||||||
"def gpt_4o_frontier(item):\n",
|
"def gpt_4o_frontier(item):\n",
|
||||||
" response = openai.chat.completions.create(\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",
|
" messages=messages_for(item),\n",
|
||||||
" seed=42,\n",
|
" seed=42,\n",
|
||||||
" max_tokens=5\n",
|
" max_tokens=5\n",
|
||||||
|
|||||||
Reference in New Issue
Block a user