930f8751 by Janis

Merge branch '28859_integrate_llm_chatbot_plus' into 'master'

remove gpt-4*

See merge request !83
2 parents 7db45447 04cd5af5
Showing 1 changed file with 5 additions and 0 deletions
......@@ -290,6 +290,11 @@ app.get('/models', async (req, res) => {
const response = await openai.listEngines();
const models = response.data;
const opensource_models = process.env.OPENSOURCE_MODELS ? process.env.OPENSOURCE_MODELS.split(',') : [];
models.data = models.data.filter((model) => {
return model.id.indexOf('gpt-4') < 0
})
opensource_models.forEach((model) => {
models.data.push({
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!