From 4e97b78d985b789424116d34af2af0d572fd3615 Mon Sep 17 00:00:00 2001 From: Wu Shuwen Date: Fri, 11 Sep 2026 20:42:01 +0800 Subject: [PATCH] docs: fix v2 plugin system example (#48452) --- services/www/src/docs/content/build/plugins/index.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/www/src/docs/content/build/plugins/index.mdx b/services/www/src/docs/content/build/plugins/index.mdx index a435f2b8430..04a6c91bebe 100644 --- a/services/www/src/docs/content/build/plugins/index.mdx +++ b/services/www/src/docs/content/build/plugins/index.mdx @@ -1222,7 +1222,7 @@ differently: ```ts await ctx.session.hook("context", (event) => { - event.system.push({ text: "Keep the review focused on correctness." }) + event.system.push({ type: "text", text: "Keep the review focused on correctness." }) delete event.tools.write event.options.temperature = 0.2 event.options.maxTokens = 8_000