Skip to content

Commit

Permalink
revert play delay
Browse files Browse the repository at this point in the history
  • Loading branch information
webdevcody committed Oct 16, 2024
1 parent 7fc7ce1 commit 1000174
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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):

Expand Down
9 changes: 3 additions & 6 deletions convex/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;

0 comments on commit 1000174

Please sign in to comment.