Skip to content

Commit 43a9d9c

Browse files
authored
fix chat update (LAION-AI#2715)
fix LAION-AI#2710 fix LAION-AI#2711
1 parent b5b3bfb commit 43a9d9c

3 files changed

Lines changed: 3 additions & 34 deletions

File tree

‎website/src/pages/api/chat/hide.ts‎

Lines changed: 0 additions & 17 deletions
This file was deleted.

‎website/src/pages/api/chat/index.ts‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ const handler = withoutRole("banned", async (req, res, token) => {
2121
// TODO: re-activate later
2222
// await client.delete_chat(req.query.chat_id as string);
2323
data = {};
24+
} else if (req.method === "PUT") {
25+
await client.update_chat(req.body);
26+
return res.status(200).end();
2427
}
2528

2629
if (data) {

‎website/src/pages/api/chat/title.ts‎

Lines changed: 0 additions & 17 deletions
This file was deleted.

0 commit comments

Comments
 (0)