Skip to content

Commit

Permalink
chore: add fallback API key
Browse files Browse the repository at this point in the history
  • Loading branch information
emcelroy committed Dec 6, 2024
1 parent 7d9e4f1 commit a8fdef7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/openai-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit a8fdef7

Please sign in to comment.