mirror of
https://github.com/anomalyco/opencode.git
synced 2026-11-14 03:56:55 +03:00
docs: fix v2 plugin system example (#48452)
This commit is contained in:
committed by
GitHub
Unverified
parent
6bb4b35399
commit
4e97b78d98
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user