Skip to content

Commit 94c6513

Browse files
Merge pull request #381 from nocodb/docs-script
2 parents 7439e91 + 50efac5 commit 94c6513

File tree

3 files changed

+4
-7
lines changed

3 files changed

+4
-7
lines changed

app/api/chat/route.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff 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
}

app/docs/self-hosting/[[...slug]]/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

content/docs/automation/scripts/actions-on-script.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

3131
Export your script execution results to PDF.
3232

0 commit comments

Comments
 (0)