summaryrefslogtreecommitdiffhomepage
path: root/packages/plugin/src/index.ts
diff options
context:
space:
mode:
authorAiden Cline <[email protected]>2025-12-15 14:32:48 -0600
committerAiden Cline <[email protected]>2025-12-15 14:34:56 -0600
commit81134cf61ecc5d07c8261588f2813aa1745ebe0c (patch)
tree9a7d8d36f29de38292ee7261aa12efb47fed4ceb /packages/plugin/src/index.ts
parent37e4c1e619b33d1671e00a0cf9aecb7e2fbe68c5 (diff)
downloadopencode-81134cf61ecc5d07c8261588f2813aa1745ebe0c.tar.gz
opencode-81134cf61ecc5d07c8261588f2813aa1745ebe0c.zip
add ability to set topK
Diffstat (limited to 'packages/plugin/src/index.ts')
-rw-r--r--packages/plugin/src/index.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/plugin/src/index.ts b/packages/plugin/src/index.ts
index 9dd4820b9..ef06a4d8b 100644
--- a/packages/plugin/src/index.ts
+++ b/packages/plugin/src/index.ts
@@ -161,7 +161,7 @@ export interface Hooks {
*/
"chat.params"?: (
input: { sessionID: string; agent: string; model: Model; provider: ProviderContext; message: UserMessage },
- output: { temperature: number; topP: number; options: Record<string, any> },
+ output: { temperature: number; topP: number; topK: number; options: Record<string, any> },
) => Promise<void>
"permission.ask"?: (input: Permission, output: { status: "ask" | "deny" | "allow" }) => Promise<void>
"tool.execute.before"?: (