Spaces:
Running
Running
Update server.js
Browse files
server.js
CHANGED
@@ -6,10 +6,6 @@ const port = 3000;
|
|
6 |
|
7 |
app.use(express.json());
|
8 |
|
9 |
-
app.get('/', (req, res) => {
|
10 |
-
res.status(200).send("Сервер работает!")
|
11 |
-
});
|
12 |
-
|
13 |
app.post('/generate', async (req, res) => {
|
14 |
const { messages, temperature, max_tokens } = req.body;
|
15 |
|
|
|
6 |
|
7 |
app.use(express.json());
|
8 |
|
|
|
|
|
|
|
|
|
9 |
app.post('/generate', async (req, res) => {
|
10 |
const { messages, temperature, max_tokens } = req.body;
|
11 |
|