Spaces:
Sleeping
Sleeping
Update server.js
Browse files
server.js
CHANGED
@@ -7,7 +7,7 @@ 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://generativelanguage.googleapis.com/v1beta/models/gemini-1.5-pro-latest:streamGenerateContent?alt=sse
|
11 |
|
12 |
const limiter = rateLimit({
|
13 |
windowMs: 40 * 1000, // 40 секунд
|
|
|
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
|
11 |
|
12 |
const limiter = rateLimit({
|
13 |
windowMs: 40 * 1000, // 40 секунд
|