Skip to content

Commit e9adbf1

Browse files
committed
feat: hide reasoning from chat user
1 parent 0c69cde commit e9adbf1

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

app/api/chat/route.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ export async function POST(req: Request) {
414414

415415
return result.toUIMessageStreamResponse({
416416
originalMessages: messages,
417-
sendReasoning: true, // Enable streaming of reasoning/thinking content
417+
sendReasoning: false,
418418
headers: {
419419
"Content-Type": "text/event-stream",
420420
},

app/api/support/route.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,7 @@ export async function POST(req: Request) {
470470

471471
return result.toUIMessageStreamResponse({
472472
originalMessages: messages,
473-
sendReasoning: true, // Enable streaming of reasoning/thinking content
473+
sendReasoning: false,
474474
headers: {
475475
"Content-Type": "text/event-stream",
476476
},

app/api/ymax/route.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,7 @@ export async function POST(req: Request) {
472472

473473
return result.toUIMessageStreamResponse({
474474
originalMessages: messages,
475-
sendReasoning: true, // Enable streaming of reasoning/thinking content
475+
sendReasoning: false,
476476
headers: {
477477
"Content-Type": "text/event-stream",
478478
},

0 commit comments

Comments
 (0)