From 2b6f9617200e104869e62cf229f52cdac8887328 Mon Sep 17 00:00:00 2001 From: Aaron Delasy Date: Wed, 16 Oct 2024 16:21:37 +0300 Subject: [PATCH] Fix mock documentation --- README.md | 5 +++-- convex/_generated/api.d.ts | 2 -- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 25c60d7..c79518d 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/convex/_generated/api.d.ts b/convex/_generated/api.d.ts index f8c7441..a4e3ff9 100644 --- a/convex/_generated/api.d.ts +++ b/convex/_generated/api.d.ts @@ -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"; @@ -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;