mirror of
https://github.com/james-m-jordan/openai-cookbook.git
synced 2025-05-09 19:32:38 +00:00
fixed typo (#523)
This commit is contained in:
parent
0d1436b8d9
commit
90ef0f25e5
@ -172,6 +172,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"attachments": {},
|
||||||
"cell_type": "markdown",
|
"cell_type": "markdown",
|
||||||
"id": "f2e47962",
|
"id": "f2e47962",
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
@ -338,7 +339,7 @@
|
|||||||
"\n",
|
"\n",
|
||||||
"\n",
|
"\n",
|
||||||
"def extract_chunk(content, template_prompt):\n",
|
"def extract_chunk(content, template_prompt):\n",
|
||||||
" \"\"\"This function applies a prompt to some input content. In this case it returns a summarize chunk of text\"\"\"\n",
|
" \"\"\"This function applies a prompt to some input content. In this case it returns a summarized chunk of text\"\"\"\n",
|
||||||
" prompt = template_prompt + content\n",
|
" prompt = template_prompt + content\n",
|
||||||
" response = openai.ChatCompletion.create(\n",
|
" response = openai.ChatCompletion.create(\n",
|
||||||
" model=GPT_MODEL, messages=[{\"role\": \"user\", \"content\": prompt}], temperature=0\n",
|
" model=GPT_MODEL, messages=[{\"role\": \"user\", \"content\": prompt}], temperature=0\n",
|
||||||
@ -480,6 +481,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"attachments": {},
|
||||||
"cell_type": "markdown",
|
"cell_type": "markdown",
|
||||||
"id": "dab07e98",
|
"id": "dab07e98",
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
@ -656,6 +658,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"attachments": {},
|
||||||
"cell_type": "markdown",
|
"cell_type": "markdown",
|
||||||
"id": "dd3e7868",
|
"id": "dd3e7868",
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user