Skip to content

An AI-powered search engine with a generative UI

Set the model variable in task-manager

winniesic73422d1b9c0
diff --git a/lib/agents/task-manager.tsx b/lib/agents/task-manager.tsx
index b7ca3736..9cf78305 100644
--- a/lib/agents/task-manager.tsx
+++ b/lib/agents/task-manager.tsx
@@ -11,7 +11,7 @@ export async function taskManager(messages: ExperimentalMessage[]) {
})
const result = await experimental_generateObject({
- model: openai.chat('gpt-3.5-turbo'),
+ model: openai.chat(process.env.OPENAI_API_MODEL || 'gpt-4-turbo'),
system: `As a professional web researcher, your primary objective is to fully comprehend the user's query, conduct thorough web searches to gather the necessary information, and provide an appropriate response.
To achieve this, you must first analyze the user's input and determine the optimal course of action. You have two options at your disposal:
1. "proceed": If the provided information is sufficient to address the query effectively, choose this option to proceed with the research and formulate a response.