File tree Expand file tree Collapse file tree 3 files changed +4
-7
lines changed
docs/self-hosting/[[...slug]]
content/docs/automation/scripts Expand file tree Collapse file tree 3 files changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ export async function POST(req: Request) {
5353 ignoreIncompleteToolCalls : true ,
5454 } ) ,
5555 stopWhen : stepCountIs ( 10 ) ,
56- onFinish : async ( { text, toolCalls, steps } ) => {
56+ onFinish : ( { text, toolCalls, steps } ) => {
5757 const duration = Date . now ( ) - startTime ;
5858
5959 const allParts = steps . map ( ( step , index ) => {
@@ -78,10 +78,7 @@ export async function POST(req: Request) {
7878 const result = "result" in tr ? tr . result : undefined ;
7979 return {
8080 name : tr . toolName ,
81- result :
82- typeof result === "string"
83- ? result . substring ( 0 , 200 )
84- : result ,
81+ result,
8582 } ;
8683 } ) ;
8784 }
Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ export default async function Page(props: {
5959 ) ;
6060}
6161
62- export async function generateStaticParams ( ) {
62+ export function generateStaticParams ( ) {
6363 return selfHostingSource . generateParams ( ) ;
6464}
6565
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ To delete a Script
2626- Use ` ... ` actions button to the right of the script name in the Scripts list
2727- Select ` Delete `
2828
29- ### Print / Export to PDF
29+ ### Print/ Export Script Logs to PDF
3030
3131Export your script execution results to PDF .
3232
You can’t perform that action at this time.
0 commit comments