From c8b61d6c3daeece47d8c1d08e33a6ab017b72c71 Mon Sep 17 00:00:00 2001 From: RainRat Date: Thu, 25 Apr 2024 21:07:59 -0700 Subject: [PATCH] fix typos --- model/pretokenizer/tokenizer.py | 2 +- website/src/components/Chat/ChatConversationTree.tsx | 2 +- website/src/components/Messages/LabelInputGroup.tsx | 2 +- website/src/components/Tasks/Task/Task.tsx | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/model/pretokenizer/tokenizer.py b/model/pretokenizer/tokenizer.py index 5ee75a32a4..18e53851a6 100644 --- a/model/pretokenizer/tokenizer.py +++ b/model/pretokenizer/tokenizer.py @@ -310,7 +310,7 @@ def bos(self): def eod(self): if self._eod_id is not None: return self._eod_id - return self._eos_id # in case noe eod we can patch this up with an eos + return self._eos_id # in case no eod we can patch this up with an eos @property def eos_token_id(self): diff --git a/website/src/components/Chat/ChatConversationTree.tsx b/website/src/components/Chat/ChatConversationTree.tsx index c83ec1f133..95eb9c15da 100644 --- a/website/src/components/Chat/ChatConversationTree.tsx +++ b/website/src/components/Chat/ChatConversationTree.tsx @@ -111,7 +111,7 @@ const TreeChildren = ({ {...props} canRetry={isLeaf} showEncourageMessage={props.showEncourageMessage && isLeaf} - // TODO refacor away from this dirty hack + // TODO refactor away from this dirty hack id={isLeaf && currentTree.role === "assistant" ? LAST_ASSISTANT_MESSAGE_ID : undefined} data-id={currentTree.id} pagingSlot={ diff --git a/website/src/components/Messages/LabelInputGroup.tsx b/website/src/components/Messages/LabelInputGroup.tsx index b3e983900c..a864627853 100644 --- a/website/src/components/Messages/LabelInputGroup.tsx +++ b/website/src/components/Messages/LabelInputGroup.tsx @@ -32,7 +32,7 @@ interface LabelInputGroupProps { * * Note that Label is a type that include a name, like "spam" or "fails_task", and a widget value, * like "yes_no". - * The LabelYesNoGroup will then look for spam.question or fails_task.qustion strings in the translation files. + * The LabelYesNoGroup will then look for spam.question or fails_task.question strings in the translation files. * */ export const LabelInputGroup = ({ diff --git a/website/src/components/Tasks/Task/Task.tsx b/website/src/components/Tasks/Task/Task.tsx index 2721a2952a..161deaabcb 100644 --- a/website/src/components/Tasks/Task/Task.tsx +++ b/website/src/components/Tasks/Task/Task.tsx @@ -99,7 +99,7 @@ export const Task = () => { case "DEFAULT_WARN": return { mode: "EDIT", replyValidity: "DEFAULT" }; case "SUBMITTED": - // allow return to edit from subbmitted mode (error happen during submitting task) + // allow return to edit from submitted mode (error happen during submitting task) return { mode: "EDIT", replyValidity: "VALID" }; default: return status;