From a8fdef7793020c7c1fcb24a77661c1ff40a8b4ce Mon Sep 17 00:00:00 2001 From: Ethan McElroy Date: Fri, 6 Dec 2024 10:37:00 -0500 Subject: [PATCH] chore: add fallback API key --- src/utils/openai-utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/openai-utils.ts b/src/utils/openai-utils.ts index ec8e23b..674c1eb 100644 --- a/src/utils/openai-utils.ts +++ b/src/utils/openai-utils.ts @@ -3,7 +3,7 @@ import { AssistantTool } from "openai/resources/beta/assistants"; export const newOpenAI = () => { return new OpenAI({ - apiKey: process.env.REACT_APP_OPENAI_API_KEY, + apiKey: process.env.REACT_APP_OPENAI_API_KEY || "fake-key", baseURL: process.env.REACT_APP_OPENAI_BASE_URL, dangerouslyAllowBrowser: true, organization: "org-jbU1egKECzYlQI73HMMi7EOZ",