04cd5af5 by Jerald Lim

remove gpt-4*

1 parent 7e30965a
Showing 1 changed file with 5 additions and 0 deletions
...@@ -290,6 +290,11 @@ app.get('/models', async (req, res) => { ...@@ -290,6 +290,11 @@ app.get('/models', async (req, res) => {
290 const response = await openai.listEngines(); 290 const response = await openai.listEngines();
291 const models = response.data; 291 const models = response.data;
292 const opensource_models = process.env.OPENSOURCE_MODELS ? process.env.OPENSOURCE_MODELS.split(',') : []; 292 const opensource_models = process.env.OPENSOURCE_MODELS ? process.env.OPENSOURCE_MODELS.split(',') : [];
293
294 models.data = models.data.filter((model) => {
295 return model.id.indexOf('gpt-4') < 0
296 })
297
293 opensource_models.forEach((model) => { 298 opensource_models.forEach((model) => {
294 models.data.push({ 299 models.data.push({
295 id: model, 300 id: model,
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!