coerce to bool
This commit is contained in:
parent
e7c9394946
commit
e8874fdbd4
@ -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)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user