From cc5158006367e676ddf48c32a0c0249ba88164b8 Mon Sep 17 00:00:00 2001 From: David Tarrant Date: Thu, 29 Aug 2024 21:23:50 +0100 Subject: [PATCH] Updating to gpt-4o-mini --- package.json | 2 +- routes/assistant.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index afbe8ef..20aa2d8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "care.theodi.org", - "version": "2.7.2", + "version": "2.8.0", "description": "The ODI Care tool (AI enabled)", "main": "index.js", "scripts": { diff --git a/routes/assistant.js b/routes/assistant.js index 1029184..6b9ac1a 100644 --- a/routes/assistant.js +++ b/routes/assistant.js @@ -121,7 +121,7 @@ async function populateMessage(messageId, data) { async function getAIReponse(message) { const completion = await openai.chat.completions.create({ messages: [{ role: "user", content: message }], - model: "gpt-4o", + model: "gpt-4o-mini", }); return completion.choices[0].message.content; }