fix: give more buffer to reasoning
Browse files2 unmodified lines34567829 unmodified lines3839404142433 unmodified lines474849505152532 unmodified linesimport { getReturnFromGenerator } from "$lib/utils/getReturnFromGenerator";import { getToolOutput } from "../tools/getToolOutput";import type { Tool } from "$lib/types/Tool";export async function generateSummaryOfReasoning(buffer: string): Promise<string> {let summary: string | undefined;29 unmodified linespreprompt,tool: summaryTool,endpoint,});}3 unmodified linesmessages: [{from: "user",content: buffer.slice(-200),},],preprompt: `You are tasked with summarizing the latest reasoning steps. Never describe results of the reasoning, only the process. Remain vague in your summary.2 unmodified lines345678929 unmodified lines3940414243444546473 unmodified lines515253545556572 unmodified linesimport { getReturnFromGenerator } from "$lib/utils/getReturnFromGenerator";import { getToolOutput } from "../tools/getToolOutput";import type { Tool } from "$lib/types/Tool";import { logger } from "../logger";export async function generateSummaryOfReasoning(buffer: string): Promise<string> {let summary: string | undefined;29 unmodified linespreprompt,tool: summaryTool,endpoint,}).catch(() => {logger.warn("Error getting tool output");return undefined;});}3 unmodified linesmessages: [{from: "user",content: buffer.slice(-400),},],preprompt: `You are tasked with summarizing the latest reasoning steps. Never describe results of the reasoning, only the process. Remain vague in your summary.
src/lib/server/textGeneration/reasoning.ts+5-1