admin08077 commited on
Commit
893bcdf
·
verified ·
1 Parent(s): 3071c0b

Update server.js

Browse files
Files changed (1) hide show
  1. server.js +1 -1
server.js CHANGED
@@ -175,7 +175,7 @@ app.get('/api/chat/history', (req, res) => {
175
  // --- Gemini Proxy ---
176
  app.post('/api/gemini/generate', async (req, res) => {
177
  try {
178
- const apiKey = process.env.API_KEY;
179
  if (!apiKey) return res.status(500).json({ error: 'API Key missing' });
180
 
181
  const { model, contents, config, saveToMemory } = req.body;
 
175
  // --- Gemini Proxy ---
176
  app.post('/api/gemini/generate', async (req, res) => {
177
  try {
178
+ const apiKey = process.env.GEMINI_API_KEY;
179
  if (!apiKey) return res.status(500).json({ error: 'API Key missing' });
180
 
181
  const { model, contents, config, saveToMemory } = req.body;