From dceb48ff113cdde6b9b138d48171d1f1e8c7e187 Mon Sep 17 00:00:00 2001 From: jacoblee93 Date: Tue, 24 Sep 2024 08:38:55 -0700 Subject: [PATCH] Use mini instead of full 4o --- app/ai_sdk/agent/README.md | 2 +- app/ai_sdk/agent/action.ts | 2 +- app/ai_sdk/tools/README.md | 2 +- app/ai_sdk/tools/action.ts | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/ai_sdk/agent/README.md b/app/ai_sdk/agent/README.md index ab22103..7b1700e 100644 --- a/app/ai_sdk/agent/README.md +++ b/app/ai_sdk/agent/README.md @@ -57,7 +57,7 @@ Next, inside our function we'll define our chat model of choice: ```typescript action.ts const llm = new ChatOpenAI({ - model: "gpt-4o-2024-05-13", + model: "gpt-4o-mini", temperature: 0, }); ``` diff --git a/app/ai_sdk/agent/action.ts b/app/ai_sdk/agent/action.ts index 61c5437..13b0541 100644 --- a/app/ai_sdk/agent/action.ts +++ b/app/ai_sdk/agent/action.ts @@ -20,7 +20,7 @@ export async function runAgent(input: string) { ); const llm = new ChatOpenAI({ - model: "gpt-4o-2024-05-13", + model: "gpt-4o-mini", temperature: 0, }); diff --git a/app/ai_sdk/tools/README.md b/app/ai_sdk/tools/README.md index 0c0e62c..362cd5b 100644 --- a/app/ai_sdk/tools/README.md +++ b/app/ai_sdk/tools/README.md @@ -74,7 +74,7 @@ For the main logic, we'll wrap it in an async function. Start by defining our pr ]); const llm = new ChatOpenAI({ - model: "gpt-4o-2024-05-13", + model: "gpt-4o-mini", temperature: 0, }); diff --git a/app/ai_sdk/tools/action.ts b/app/ai_sdk/tools/action.ts index 6dbe349..1a576f3 100644 --- a/app/ai_sdk/tools/action.ts +++ b/app/ai_sdk/tools/action.ts @@ -36,7 +36,7 @@ export async function executeTool( ]); const llm = new ChatOpenAI({ - model: "gpt-4o-2024-05-13", + model: "gpt-4o-mini", temperature: 0, });