From ab47cfe4247ff36b809a74cc629dc1bce5850727 Mon Sep 17 00:00:00 2001 From: Teo Musatoiu <156829031+teomusatoiu@users.noreply.github.com> Date: Tue, 12 Nov 2024 09:17:27 +0000 Subject: [PATCH] Update Enhance_your_prompts_with_meta_prompting.ipynb (#1557) --- examples/Enhance_your_prompts_with_meta_prompting.ipynb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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" ] },