coerce to bool

This commit is contained in:
Abi Raja 2023-11-23 11:30:19 -05:00
parent e7c9394946
commit e8874fdbd4

View File

@ -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)