From e8874fdbd44161c955df64f768e16a215dcd54d8 Mon Sep 17 00:00:00 2001 From: Abi Raja Date: Thu, 23 Nov 2023 11:30:19 -0500 Subject: [PATCH] coerce to bool --- backend/main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/main.py b/backend/main.py index eeb096f..93d2e9a 100644 --- a/backend/main.py +++ b/backend/main.py @@ -33,7 +33,8 @@ app.add_middleware( # Useful for debugging purposes when you don't want to waste GPT4-Vision credits # Setting to True will stream a mock response instead of calling the OpenAI API -SHOULD_MOCK_AI_RESPONSE = os.environ.get("MOCK", False) +# TODO: Should only be set to true when value is 'True', not any abitrary truthy value +SHOULD_MOCK_AI_RESPONSE = bool(os.environ.get("MOCK", False)) app.include_router(screenshot.router)