Spaces:
Sleeping
Sleeping
Update server.js
Browse files
server.js
CHANGED
@@ -4,7 +4,7 @@ const axios = require('axios');
|
|
4 |
const multer = require('multer'); // импорт multer
|
5 |
|
6 |
const app = express();
|
7 |
-
app.use(express.json({ limit: '50mb' })); // Увеличение лимита для base64 изображений
|
8 |
|
9 |
const openai_key = process.env.OPENAI_KEY;
|
10 |
const base_url = "https://rooni-gemini-reverse-proxy.hf.space/v1beta/models/gemini-1.5-pro-latest:streamGenerateContent?alt=sse"; //https://generativelanguage.googleapis.com/v1beta/models/gemini-1.5-pro-latest:streamGenerateContent?alt=sse
|
|
|
4 |
const multer = require('multer'); // импорт multer
|
5 |
|
6 |
const app = express();
|
7 |
+
//app.use(express.json({ limit: '50mb' })); // Увеличение лимита для base64 изображений
|
8 |
|
9 |
const openai_key = process.env.OPENAI_KEY;
|
10 |
const base_url = "https://rooni-gemini-reverse-proxy.hf.space/v1beta/models/gemini-1.5-pro-latest:streamGenerateContent?alt=sse"; //https://generativelanguage.googleapis.com/v1beta/models/gemini-1.5-pro-latest:streamGenerateContent?alt=sse
|