diff --git a/examples/Enhance_your_prompts_with_meta_prompting.ipynb b/examples/Enhance_your_prompts_with_meta_prompting.ipynb index 8f5502869f..c30cc470c0 100644 --- a/examples/Enhance_your_prompts_with_meta_prompting.ipynb +++ b/examples/Enhance_your_prompts_with_meta_prompting.ipynb @@ -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" ] },