Update server.js
Browse files
server.js
CHANGED
|
@@ -23,23 +23,6 @@ async function transcript(url) {
|
|
| 23 |
return text;
|
| 24 |
};
|
| 25 |
|
| 26 |
-
POST https://mind.hydrooo.web.id/v2/chat 200
|
| 27 |
-
|
| 28 |
-
Response Headers
|
| 29 |
-
|
| 30 |
-
access-control-allow-origin: *
|
| 31 |
-
content-length: 127
|
| 32 |
-
content-type: application/json; charset=utf-8
|
| 33 |
-
date: Fri, 28 Mar 2025 22:01:46 GMT
|
| 34 |
-
etag: W/"7f-np0JQgT6PQsy51qetZibp/AliuQ"
|
| 35 |
-
server: railway-edge
|
| 36 |
-
x-powered-by: Express
|
| 37 |
-
x-railway-edge: railway/asia-southeast1
|
| 38 |
-
x-railway-request-id: oncZt8QAR6KdAZXGT-S-UA_3176973899
|
| 39 |
-
|
| 40 |
-
{"status":200,"result":{"model":"gemini-2.0-pro-exp-02-05","messages":[{"role":"ai","content":"Oi! Como posso ajudar? 😊"}]}}
|
| 41 |
-
|
| 42 |
-
|
| 43 |
app.get('/summary', async (req, res) => {
|
| 44 |
const { url } = req.query;
|
| 45 |
if (!url) return res.status(400).json({ error: 'Missing video URL' });
|
|
|
|
| 23 |
return text;
|
| 24 |
};
|
| 25 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 26 |
app.get('/summary', async (req, res) => {
|
| 27 |
const { url } = req.query;
|
| 28 |
if (!url) return res.status(400).json({ error: 'Missing video URL' });
|