Skip to content

Commit

Permalink
fix: typo (#464)
Browse files Browse the repository at this point in the history
  • Loading branch information
Yonom authored Jul 11, 2024
1 parent dfaf935 commit 85abdfa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react/src/runtimes/local/LocalRuntime.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down

0 comments on commit 85abdfa

Please sign in to comment.