Remove hardcoded OpenAI API key, use env var instead
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
f77a6f0c39
commit
9ee1c49888
|
|
@ -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,
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue