Skip to content

Commit

Permalink
Merge pull request #279 from langchain-ai/nc/8apr/rm-unused-arg
Browse files Browse the repository at this point in the history
Remove unused arg
  • Loading branch information
mkorpela authored Apr 9, 2024
2 parents d6e62ff + fdc22bb commit 34fe8e7
Showing 1 changed file with 2 additions and 15 deletions.
17 changes: 2 additions & 15 deletions frontend/src/components/Chat.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ interface ChatProps extends Pick<StreamStateProps, "stream" | "stopStream"> {
startStream: (
message: MessageWithFiles | null,
thread_id: string,
assistant_id: string,
) => Promise<void>;
}

Expand Down Expand Up @@ -75,27 +74,15 @@ export function Chat(props: ChatProps) {
{resumeable && props.stream?.status !== "inflight" && (
<div
className="flex items-center rounded-md bg-blue-50 px-2 py-1 text-xs font-medium text-blue-800 ring-1 ring-inset ring-yellow-600/20 cursor-pointer"
onClick={() =>
props.startStream(
null,
currentChat.thread_id,
currentChat.assistant_id,
)
}
onClick={() => props.startStream(null, currentChat.thread_id)}
>
<ArrowDownCircleIcon className="h-5 w-5 mr-1" />
Click to continue.
</div>
)}
<div className="fixed left-0 lg:left-72 bottom-0 right-0 p-4">
<TypingBox
onSubmit={(msg) =>
props.startStream(
msg,
currentChat.thread_id,
currentChat.assistant_id,
)
}
onSubmit={(msg) => props.startStream(msg, currentChat.thread_id)}
onInterrupt={
props.stream?.status === "inflight" ? props.stopStream : undefined
}
Expand Down

0 comments on commit 34fe8e7

Please sign in to comment.