Skip to content

Commit

Permalink
Set the model variable in task-manager
Browse files Browse the repository at this point in the history
  • Loading branch information
winniesi committed Apr 13, 2024
1 parent 4b2c4e4 commit c73422d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/agents/task-manager.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit c73422d

Please sign in to comment.