Skip to content

Commit 81cdd91

Browse files
committed
fix: 用户输入作为独立参数传递,不会被解析为格式化指令
1 parent 0d60d1a commit 81cdd91

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/api/chat/route.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@ export async function POST(req: Request) {
5555
}
5656
} catch (error) {
5757
console.warn(
58-
`Failed to fetch content for slug ${pageContext.slug}:`,
58+
"Failed to fetch content for slug:",
59+
pageContext.slug,
5960
error,
6061
);
6162
// 出错时不中断,只是缺少上下文

0 commit comments

Comments
 (0)