From bad296770fdc7bb3a6bc89245360a31614db51a3 Mon Sep 17 00:00:00 2001 From: istarkov Date: Mon, 14 Oct 2024 10:04:31 +0000 Subject: [PATCH] Speedup AI 10x --- apps/builder/app/routes/rest.ai._index.ts | 2 +- packages/ai/src/models/gpt.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/builder/app/routes/rest.ai._index.ts b/apps/builder/app/routes/rest.ai._index.ts index f005197a3643..0959afbff32e 100644 --- a/apps/builder/app/routes/rest.ai._index.ts +++ b/apps/builder/app/routes/rest.ai._index.ts @@ -237,7 +237,7 @@ export const action = async ({ request }: ActionFunctionArgs) => { apiKey: env.OPENAI_KEY, organization: env.OPENAI_ORG, temperature: 0, - model: "gpt-4", + model: "gpt-4o", }); const generationChain = diff --git a/packages/ai/src/models/gpt.ts b/packages/ai/src/models/gpt.ts index 15e11a341e7e..2f6cee728b71 100644 --- a/packages/ai/src/models/gpt.ts +++ b/packages/ai/src/models/gpt.ts @@ -16,7 +16,7 @@ export type ModelConfig = { apiKey: string; organization: string; temperature: number; - model?: "gpt-3.5-turbo" | "gpt-3.5-turbo-16k" | "gpt-4" | "gpt-4-32k"; + model?: "gpt-3.5-turbo" | "gpt-3.5-turbo-16k" | "gpt-4o" | "gpt-4-32k"; endpoint?: string; };