2ch commited on
Commit
f99a4d1
·
verified ·
1 Parent(s): c09fac6

Upload 6 files

Browse files
Files changed (1) hide show
  1. 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
- return res.status(400).json({
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;