Skip to content

An AI-powered search engine with a generative UI

Update OpenAI model to gpt-4-turbo

Yoshiki Miurad4782eefec71
diff --git a/lib/agents/inquire.tsx b/lib/agents/inquire.tsx
index 1ef9136b..1d7b3710 100644
--- a/lib/agents/inquire.tsx
+++ b/lib/agents/inquire.tsx
@@ -18,7 +18,7 @@ export async function inquire(
let finalInquiry: PartialInquiry = {}
await experimental_streamObject({
- model: openai.chat('gpt-4-turbo-preview'),
+ model: openai.chat('gpt-4-turbo'),
system: `As a professional web researcher, your role is to deepen your understanding of the user's input by conducting further inquiries when necessary.
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.
diff --git a/lib/agents/query-suggestor.tsx b/lib/agents/query-suggestor.tsx
index a7ed7abd..f79313a1 100644
--- a/lib/agents/query-suggestor.tsx
+++ b/lib/agents/query-suggestor.tsx
@@ -22,7 +22,7 @@ export async function querySuggestor(
)
await experimental_streamObject({
- model: openai.chat('gpt-4-turbo-preview'),
+ model: openai.chat('gpt-4-turbo'),
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.
For instance, if the original query was "Starship's third test flight key milestones", your output should follow this format:
diff --git a/lib/agents/researcher.tsx b/lib/agents/researcher.tsx
index 8b2c5694..097ed142 100644
--- a/lib/agents/researcher.tsx
+++ b/lib/agents/researcher.tsx
@@ -36,7 +36,7 @@ export async function researcher(
)
const result = await experimental_streamText({
- model: openai.chat('gpt-4-turbo-preview'),
+ model: openai.chat('gpt-4-turbo'),
maxTokens: 2500,
system: `As a professional search expert, you possess the ability to search for any information on the web.
For each user query, utilize the search results to their fullest potential to provide additional information and assistance in your response.