Skip to content

Commit

Permalink
Update chat.py
Browse files Browse the repository at this point in the history
  • Loading branch information
spammenotinoz authored Nov 10, 2023
1 parent 0c57829 commit 20ecdf4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/api/routers/chat.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 20ecdf4

Please sign in to comment.