From 20ecdf400e69a853b9dc3878a43873474ba83dba Mon Sep 17 00:00:00 2001 From: spammenotinoz Date: Fri, 10 Nov 2023 11:11:54 +1100 Subject: [PATCH] Update chat.py --- backend/api/routers/chat.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/api/routers/chat.py b/backend/api/routers/chat.py index 413caad5..c4546478 100644 --- a/backend/api/routers/chat.py +++ b/backend/api/routers/chat.py @@ -210,7 +210,7 @@ async def check_limits(user: UserReadAdmin, ask_request: AskRequest): if ask_request.openai_web_attachments and len(ask_request.openai_web_attachments) > 0: if (ask_request.model == OpenaiWebChatModels.gpt_4 or ask_request.model == OpenaiWebChatModels.gpt_4_code_interpreter) and \\ - config.openai_web.enable_uploading_attachments is True: + config.openai_web.enable_uploading_attachments is True: # Allow attachments else: raise WebsocketInvalidAskException("errors.attachmentsNotAllowed")