You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -97,7 +92,7 @@ async function generateSerpQueries({
97
92
: [];
98
93
99
94
constres=awaitgenerateObject({
100
-
model: o3MiniModel,
95
+
model: o4MiniModel,
101
96
system: systemPrompt(),
102
97
prompt: `Given the following prompt from the user, generate a list of SERP queries to research the topic. Return a maximum of ${numQueries} queries, but feel free to return less if the original prompt is clear. Make sure each query is unique and not similar to each other.
prompt: `Evaluate the reliability of the following source domain for research about: "${context}"
182
177
@@ -276,7 +271,7 @@ async function processSerpResult({
276
271
log(`Ran ${query}, found ${contents.length} contents (${sourceMetadata.filter(m=>m.reliabilityScore>=reliabilityThreshold).length} above reliability threshold ${reliabilityThreshold})`);
277
272
278
273
constres=awaitgenerateObject({
279
-
model: o3MiniModel,
274
+
model: o4MiniModel,
280
275
abortSignal: AbortSignal.timeout(60_000),
281
276
system: systemPrompt(),
282
277
prompt: `Given the following contents from a SERP search for the query <query>${query}</query>, generate a list of learnings from the contents. Return a maximum of ${numLearnings} learnings, but feel free to return less if the contents are clear. Make sure each learning is unique and not similar to each other. The learnings should be concise and to the point, as detailed and information dense as possible. Make sure to include any entities like people, places, companies, products, things, etc in the learnings, as well as any exact metrics, numbers, or dates.
@@ -361,7 +356,7 @@ export async function writeFinalReport({
361
356
);
362
357
363
358
constres=awaitgenerateObject({
364
-
model: o3MiniModel,
359
+
model: o4MiniModel,
365
360
system: systemPrompt(),
366
361
prompt: `Given the following prompt from the user, write a final report on the topic using the learnings from research. Make it as detailed as possible, aim for 3 or more pages, include ALL the learnings from research. Consider source reliability when drawing conclusions.
Copy file name to clipboardExpand all lines: src/feedback.ts
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
import{generateObject}from'ai';
2
2
import{z}from'zod';
3
3
4
-
import{o3MiniModel}from'./ai/providers.js';
4
+
import{o4MiniModel}from'./ai/providers.js';
5
5
import{systemPrompt}from'./prompt.js';
6
6
7
7
exportasyncfunctiongenerateFeedback({
@@ -12,7 +12,7 @@ export async function generateFeedback({
12
12
numQuestions?: number;
13
13
}){
14
14
constuserFeedback=awaitgenerateObject({
15
-
model: o3MiniModel,
15
+
model: o4MiniModel,
16
16
system: systemPrompt(),
17
17
prompt: `Given the following query from the user, ask some follow up questions to clarify the research direction. Return a maximum of ${numQuestions} questions, but feel free to return less if the original query is clear: <query>${query}</query>`,
0 commit comments