From 1000174999ae00984b79ece233fa1e27f67fa941 Mon Sep 17 00:00:00 2001 From: Cody Seibert Date: Wed, 16 Oct 2024 17:36:00 -0400 Subject: [PATCH] revert play delay --- README.md | 2 +- convex/constants.ts | 9 +++------ 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 2a26819..2d8a2b6 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,7 @@ This starter project works with [convex](https://www.convex.dev) so to run you n If you want to mock all models - in convex, please add the following environment variables: - `npx convex env set MOCK_MODELS true` -- `npx convex env set NODE_ENV development` +- `npx convex env set FLAG_TEST_PAGE true` Add optional environment variable/s for simulating real AI models without mockup responses(when mockup flags are set to FALSE): diff --git a/convex/constants.ts b/convex/constants.ts index eb22bea..a1b390f 100644 --- a/convex/constants.ts +++ b/convex/constants.ts @@ -13,9 +13,6 @@ export const AI_MODEL_IDS = AI_MODELS.map((model) => model.model); // how long between each level when the AI models start playing. // spacing out the levels to make it easier to watch in the games list and reduce ai token usage. -export const PLAY_DELAY = - process.env.NODE_ENV === "development" - ? 0 - : process.env.PLAY_DELAY - ? parseInt(process.env.PLAY_DELAY) - : 10_000; +export const PLAY_DELAY = process.env.PLAY_DELAY + ? parseInt(process.env.PLAY_DELAY) + : 0;