add ability to set topK
This commit is contained in:
parent
813c330c47
commit
31ddd0798a
2 changed files with 3 additions and 1 deletions
|
|
@ -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"?: (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue