Skip to content

Commit

Permalink
Update Enhance_your_prompts_with_meta_prompting.ipynb (#1557)
Browse files Browse the repository at this point in the history
  • Loading branch information
teomusatoiu authored Nov 12, 2024
1 parent 74b0969 commit ab47cfe
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/Enhance_your_prompts_with_meta_prompting.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -299,14 +299,14 @@
"metadata": {},
"outputs": [],
"source": [
"def generate_resonse(prompt): \n",
"def generate_response(prompt): \n",
" messages = [{\"role\": \"user\", \"content\": prompt}]\n",
" response = get_model_response(messages, model=\"gpt-4o-mini\")\n",
" return response\n",
"\n",
"def generate_summaries(row):\n",
" simple_itinerary = generate_resonse(simple_prompt.format(article=row[\"content\"]))\n",
" complex_itinerary = generate_resonse(complex_prompt + row[\"content\"])\n",
" simple_itinerary = generate_response(simple_prompt.format(article=row[\"content\"]))\n",
" complex_itinerary = generate_response(complex_prompt + row[\"content\"])\n",
" return simple_itinerary, complex_itinerary"
]
},
Expand Down

0 comments on commit ab47cfe

Please sign in to comment.