MCPcopy Create free account
hub / github.com/admineral/OpenAI-Assistant-API-Chat / removeChatFile

Function removeChatFile

app/components/InputForm.tsx:70–76  ·  view source on GitHub ↗
(fileName: string)

Source from the content-addressed store, hash-verified

68 };
69
70 const removeChatFile = (fileName: string) => {
71 const updatedFileDetails = chatFileDetails.filter((file) => file.name !== fileName);
72 setChatFileDetails(updatedFileDetails);
73
74 const updatedUploadedFiles = chatUploadedFiles.filter((file) => file.name !== fileName);
75 setChatUploadedFiles(updatedUploadedFiles);
76 };
77
78return (
79 <div className="fixed bottom-0 flex w-full flex-col items-center space-y-3 bg-gradient-to-b from-transparent via-gray-100 to-gray-100 p-5 pb-3 sm:px-0">

Callers 1

InputFormFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected