Remove hardcoded OpenAI API key, use env var instead

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Jeff Emmett 2026-03-22 16:43:49 -07:00
parent f77a6f0c39
commit 9ee1c49888
1 changed files with 1 additions and 2 deletions

View File

@ -1,8 +1,7 @@
import OpenAI from "openai";
const openai = new OpenAI({
apiKey: "REVOKED_KEY_SEE_ENV_VAR",
// apiKey: import.meta.env.VITE_OPENAI_API_KEY,
apiKey: import.meta.env.VITE_OPENAI_API_KEY,
dangerouslyAllowBrowser: true,
});