Skip to content

Commit 52e82ea

Browse files
committed
feat(generic chat box): make chat box generic
1 parent 3bcb3a1 commit 52e82ea

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

web/src/components/internal-ui/ChatBox.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@ interface Props {
1414
id: string;
1515
}
1616

17-
interface BasicGenApiResponse {
17+
interface BasicApiResponse {
1818
output: string;
1919
}
2020

2121
const ChatBox = ({ messageData, endpoint, request, id }: Props) => {
2222
const addMessage = useGptStore((s) => s.addMessage);
2323

24-
const { data, error, isLoading } = usePost<BasicGenApiResponse>(
24+
const { data, error, isLoading } = usePost<BasicApiResponse>(
2525
endpoint,
2626
request,
2727
id

0 commit comments

Comments
 (0)