File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed
apps/web/client/src/server/api/routers
packages/ai/src/tools/classes Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ export const utilsRouter = createTRPCRouter({
4747 onlyMainContent : z . boolean ( ) . default ( true ) ,
4848 includeTags : z . array ( z . string ( ) ) . optional ( ) ,
4949 excludeTags : z . array ( z . string ( ) ) . optional ( ) ,
50- waitFor : z . number ( ) . optional ( ) ,
50+ waitFor : z . number ( ) . min ( 0 ) . optional ( ) ,
5151 } ) )
5252 . mutation ( async ( { input } ) : Promise < { result : string | null , error : string | null } > => {
5353 try {
Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ export class ScrapeUrlTool extends ClientTool {
2828 . describe ( 'Array of HTML tags to exclude from the scraped content.' ) ,
2929 waitFor : z
3030 . number ( )
31+ . min ( 0 )
3132 . optional ( )
3233 . describe ( 'Time in milliseconds to wait for the page to load before scraping.' ) ,
3334 } ) ;
You can’t perform that action at this time.
0 commit comments