From 42691177ebd290da149e1b973a6051426cfd9435 Mon Sep 17 00:00:00 2001 From: tommy Date: Mon, 9 Sep 2024 15:17:55 +0800 Subject: [PATCH] FIX: fix typo --- .../Anthropic 1P/01_Basic_Prompt_Structure.ipynb | 2 +- .../Anthropic 1P/02_Being_Clear_and_Direct.ipynb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/prompt_engineering_interactive_tutorial/Anthropic 1P/01_Basic_Prompt_Structure.ipynb b/prompt_engineering_interactive_tutorial/Anthropic 1P/01_Basic_Prompt_Structure.ipynb index 625c8e6..9a5971c 100644 --- a/prompt_engineering_interactive_tutorial/Anthropic 1P/01_Basic_Prompt_Structure.ipynb +++ b/prompt_engineering_interactive_tutorial/Anthropic 1P/01_Basic_Prompt_Structure.ipynb @@ -62,7 +62,7 @@ "- `max_tokens`: the maximum number of tokens to generate before stopping. Note that Claude may stop before reaching this maximum. This parameter only specifies the absolute maximum number of tokens to generate. Furthermore, this is a *hard* stop, meaning that it may cause Claude to stop generating mid-word or mid-sentence.\n", "\n", "- `messages`: an array of input messages. Our models are trained to operate on alternating `user` and `assistant` conversational turns. When creating a new `Message`, you specify the prior conversational turns with the messages parameter, and the model then generates the next `Message` in the conversation.\n", - " - Each input message must be an object with a `role` and `content`. You can specify a single `user`-role message, or you can include multiple `user` and `assistant` messages (they must alternate, if so). The first message must always use the user `role`.\n", + " - Each input message must be an object with a `role` and `content`. You can specify a single `user`-role message, or you can include multiple `user` and `assistant` messages (they must alternate, if so). The first message must always use the `user` role.\n", "\n", "There are also optional parameters, such as:\n", "- `system`: the system prompt - more on this below.\n", diff --git a/prompt_engineering_interactive_tutorial/Anthropic 1P/02_Being_Clear_and_Direct.ipynb b/prompt_engineering_interactive_tutorial/Anthropic 1P/02_Being_Clear_and_Direct.ipynb index bcdb0ba..351fe87 100644 --- a/prompt_engineering_interactive_tutorial/Anthropic 1P/02_Being_Clear_and_Direct.ipynb +++ b/prompt_engineering_interactive_tutorial/Anthropic 1P/02_Being_Clear_and_Direct.ipynb @@ -180,7 +180,7 @@ "metadata": {}, "outputs": [], "source": [ - "# System prompt - this is the only field you should chnage\n", + "# System prompt - this is the only field you should change\n", "SYSTEM_PROMPT = \"[Replace this text]\"\n", "\n", "# Prompt\n",