Skip to content

Commit

Permalink
Fix mock documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
delasy committed Oct 16, 2024
1 parent c5305ba commit 2b6f961
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,13 @@ Before you can run the project, you'll need to setup a

This starter project works with [convex](https://www.convex.dev) so to run you need to use the [.env.example](.env.example) file to create your own .env file.

In convex, please add the following environment variables:
If you want to mock all models - in convex, please add the following environment variables:

- `npx convex env set MOCK_OPEN_AI true`
- `npx convex env set MOCK_MODELS true`

Add optional environment variable/s for simulating real AI models without mockup responses(when mockup flags are set to FALSE):

- `npx convex env set GEMINI_API_KEY YOUR_API_KEY`
- `npx convex env set OPENAI_API_KEY YOUR_API_KEY`

also, you may need to run, but I think the initial setup does that.
Expand Down
2 changes: 0 additions & 2 deletions convex/_generated/api.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ import type {
import type * as auth from "../auth.js";
import type * as constants from "../constants.js";
import type * as games from "../games.js";
import type * as gemini from "../gemini.js";
import type * as http from "../http.js";
import type * as init from "../init.js";
import type * as maps from "../maps.js";
Expand All @@ -38,7 +37,6 @@ declare const fullApi: ApiFromModules<{
auth: typeof auth;
constants: typeof constants;
games: typeof games;
gemini: typeof gemini;
http: typeof http;
init: typeof init;
maps: typeof maps;
Expand Down

0 comments on commit 2b6f961

Please sign in to comment.