Skip to content

Commit d4782ee

Browse files
committed
Update OpenAI model to gpt-4-turbo
1 parent c2e0414 commit d4782ee

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

lib/agents/inquire.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export async function inquire(
1818

1919
let finalInquiry: PartialInquiry = {}
2020
await experimental_streamObject({
21-
model: openai.chat('gpt-4-turbo-preview'),
21+
model: openai.chat('gpt-4-turbo'),
2222
system: `As a professional web researcher, your role is to deepen your understanding of the user's input by conducting further inquiries when necessary.
2323
After receiving an initial response from the user, carefully assess whether additional questions are absolutely essential to provide a comprehensive and accurate answer. Only proceed with further inquiries if the available information is insufficient or ambiguous.
2424

lib/agents/query-suggestor.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export async function querySuggestor(
2222
)
2323

2424
await experimental_streamObject({
25-
model: openai.chat('gpt-4-turbo-preview'),
25+
model: openai.chat('gpt-4-turbo'),
2626
system: `As a professional web researcher, your task is to generate a set of three queries that explore the subject matter more deeply, building upon the initial query and the information uncovered in its search results.
2727
2828
For instance, if the original query was "Starship's third test flight key milestones", your output should follow this format:

lib/agents/researcher.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export async function researcher(
3636
)
3737

3838
const result = await experimental_streamText({
39-
model: openai.chat('gpt-4-turbo-preview'),
39+
model: openai.chat('gpt-4-turbo'),
4040
maxTokens: 2500,
4141
system: `As a professional search expert, you possess the ability to search for any information on the web.
4242
For each user query, utilize the search results to their fullest potential to provide additional information and assistance in your response.

0 commit comments

Comments
 (0)