Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nfcampos committed Apr 18, 2024
1 parent bb10132 commit 679b8a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/components/MessageEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {
import { StringEditor } from "./StringEditor";
import { JsonEditor } from "./JsonEditor";
import { useThreadAndAssistant } from "../hooks/useThreadAndAssistant";
import { uniqueId } from "lodash";
import { v4 } from "uuid";

function ToolCallEditor(props: {
value: ToolCall;
Expand Down Expand Up @@ -183,7 +183,7 @@ export function ToolCallsEditor(props: {
...props.message,
tool_calls: [
...(props.message.tool_calls ?? []),
{ id: uniqueId(), name: "", args: {} },
{ id: v4(), name: availableTools[0], args: {} },
],
});
}}
Expand Down

0 comments on commit 679b8a8

Please sign in to comment.