From 6f6e4690d043a4a4ae8c128eed3224c87fbe66a8 Mon Sep 17 00:00:00 2001 From: Stanislas Polu Date: Fri, 17 Nov 2023 14:22:53 +0100 Subject: [PATCH] nit --- front/migrations/20231113_migrate_assistants_to_gpt4_turbo.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/front/migrations/20231113_migrate_assistants_to_gpt4_turbo.ts b/front/migrations/20231113_migrate_assistants_to_gpt4_turbo.ts index 4e310290f486..6d0d0d90c6ea 100644 --- a/front/migrations/20231113_migrate_assistants_to_gpt4_turbo.ts +++ b/front/migrations/20231113_migrate_assistants_to_gpt4_turbo.ts @@ -41,8 +41,9 @@ async function updateWorkspaceAssistants(wId: string) { if (g.modelId === "gpt-4" || g.modelId === "gpt-4-32k") { if (LIVE) { + const oldModel = g.modelId; await g.update({ modelId: "gpt-4-1106-preview" }); - console.log("Updated", c.sId, c.name, "from " + g.modelId); + console.log("Updated", c.sId, c.name, "from " + oldModel); } else { console.log("Would update", c.sId, c.name, "from " + g.modelId); }