Upload 6 files
Browse files- src/index.js +1 -3
src/index.js
CHANGED
@@ -10,9 +10,7 @@ app.use(express.urlencoded({ extended: true }));
|
|
10 |
app.post('/v1/chat/completions', async (req, res) => {
|
11 |
// Models starting with o1 do not support streaming output
|
12 |
if (req.body.model.startsWith('o1-') && req.body.stream) {
|
13 |
-
|
14 |
-
error: 'Model not supported stream',
|
15 |
-
});
|
16 |
}
|
17 |
|
18 |
let currentKeyIndex = 0;
|
|
|
10 |
app.post('/v1/chat/completions', async (req, res) => {
|
11 |
// Models starting with o1 do not support streaming output
|
12 |
if (req.body.model.startsWith('o1-') && req.body.stream) {
|
13 |
+
delete req.body.stream;
|
|
|
|
|
14 |
}
|
15 |
|
16 |
let currentKeyIndex = 0;
|