feat: add MOCK env variable for debugging
purposes
This commit is contained in:
parent
9811b8a7f7
commit
ba9aa55041
@ -31,6 +31,9 @@ echo "OPENAI_API_KEY=sk-your-key" > .env
|
|||||||
poetry install
|
poetry install
|
||||||
poetry shell
|
poetry shell
|
||||||
poetry run uvicorn main:app --reload --port 7001
|
poetry run uvicorn main:app --reload --port 7001
|
||||||
|
|
||||||
|
# Useful for debugging purposes when you don't want to waste GPT4-Vision credits
|
||||||
|
MOCK=true poetry run uvicorn main:app --reload --port 7001
|
||||||
```
|
```
|
||||||
|
|
||||||
Run the frontend:
|
Run the frontend:
|
||||||
|
|||||||
@ -33,7 +33,7 @@ app.add_middleware(
|
|||||||
|
|
||||||
# Useful for debugging purposes when you don't want to waste GPT4-Vision credits
|
# 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
|
# Setting to True will stream a mock response instead of calling the OpenAI API
|
||||||
SHOULD_MOCK_AI_RESPONSE = False
|
SHOULD_MOCK_AI_RESPONSE = os.environ.get("MOCK", False)
|
||||||
|
|
||||||
|
|
||||||
app.include_router(screenshot.router)
|
app.include_router(screenshot.router)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user