From 85abdfac6827b587e7fc205fe076029b6f2b5c5d Mon Sep 17 00:00:00 2001 From: Simon Farshid Date: Thu, 11 Jul 2024 14:37:30 -0700 Subject: [PATCH] fix: typo (#464) --- packages/react/src/runtimes/local/LocalRuntime.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react/src/runtimes/local/LocalRuntime.tsx b/packages/react/src/runtimes/local/LocalRuntime.tsx index 13f12f97f..f1d3c46a2 100644 --- a/packages/react/src/runtimes/local/LocalRuntime.tsx +++ b/packages/react/src/runtimes/local/LocalRuntime.tsx @@ -170,7 +170,7 @@ class LocalThreadRuntime implements ThreadRuntime { const { parentId, message } = this.repository.getMessage(messageId); if (message.role !== "assistant") - throw new Error("Tried to add tool re^sult to non-assistant message"); + throw new Error("Tried to add tool result to non-assistant message"); let found = false; const newContent = message.content.map((c) => {