Use an even better model
This commit is contained in:
@@ -9,7 +9,7 @@ export function createModelNode(tools: any, promptPath: string): GraphNode<typeo
|
|||||||
const sysPrompt = await hydratePrompt(promptPath, state);
|
const sysPrompt = await hydratePrompt(promptPath, state);
|
||||||
|
|
||||||
const model = new ChatOpenAI({
|
const model = new ChatOpenAI({
|
||||||
model: "gpt-5.4-mini"
|
model: "gpt-5.4"
|
||||||
});
|
});
|
||||||
const modelWithTools = model.bindTools(Object.values(tools));
|
const modelWithTools = model.bindTools(Object.values(tools));
|
||||||
|
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ export async function extractWebpageContent(url: string): Promise<string[]> {
|
|||||||
const response = await backOff(async () => {
|
const response = await backOff(async () => {
|
||||||
return await extractWebpageContentWorker(url);
|
return await extractWebpageContentWorker(url);
|
||||||
}, {
|
}, {
|
||||||
numOfAttempts: 10,
|
numOfAttempts: 5,
|
||||||
startingDelay: 500,
|
startingDelay: 500,
|
||||||
timeMultiple: 2,
|
timeMultiple: 2,
|
||||||
jitter: "full",
|
jitter: "full",
|
||||||
|
|||||||
Reference in New Issue
Block a user