Drop in a screenshot and convert it to clean code (HTML/Tailwind/React/Vue)
Python
coerce to bool
Abi Rajae8874fdbd441
diff --git a/backend/main.py b/backend/main.pyindex eeb096fa..93d2e9ab 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)