Spaces:
Sleeping
Sleeping
Update server.js
Browse files
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.
|
| 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;
|