Skip to content

Commit 4115508

Browse files
committed
checking if api key is present or not
1 parent ea861bb commit 4115508

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/theme/SearchBar.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export default function SearchBar() {
99
},
1010
} = useDocusaurusContext();
1111

12-
const apiKey = process.env.OPENAI_API_KEY;
12+
console.log("process.env.OPENAI_API_KEY", process.env.OPENAI_API_KEY);
1313

1414
const systemPrompt =
1515
"You are a helpful Metamask expert assistant. Your goal is to provide detailed, accurate information about Metamask's integrations to developers.\n\n" +
@@ -34,7 +34,7 @@ export default function SearchBar() {
3434
const aiConfig = {
3535
// OpenAI API settings
3636
openAI: {
37-
apiKey,
37+
apiKey: process.env.OPENAI_API_KEY,
3838
model: "gpt-4.1",
3939
maxTokens: 32768,
4040
temperature: 0.45,

0 commit comments

Comments
 (0)