diff --git a/python-examples/fast-api-react/frontend/src/App.tsx b/python-examples/fast-api-react/frontend/src/App.tsx index 4b6f3dfc9..9a3611b8e 100644 --- a/python-examples/fast-api-react/frontend/src/App.tsx +++ b/python-examples/fast-api-react/frontend/src/App.tsx @@ -11,6 +11,7 @@ const API_URL = "http://localhost:8000"; function App() { const [openRequest, setOpenRequest] = useState(); + const [message, setMessage] = useState(""); const [messages, setMessages] = useState([ { role: "assistant", content: "How can I help you?" }, @@ -40,6 +41,7 @@ function App() { hatchetRunId: data.workflowRunId, }, ]); + setOpenRequest(undefined); } } @@ -93,7 +95,7 @@ function App() {
{messages.map(({ role, content, hatchetRunId }, i) => (

- {role === "assistant" ? "Agent" : "You"}: {content}.{" "} + {role === "assistant" ? "Agent" : "You"}: {content} {hatchetRunId && (

- - + +
);