mirror of
https://github.com/sst/opencode.git
synced 2025-12-23 10:11:41 +00:00
feat: restore experimental.chat.messages.transform and add experimental.chat.system.transform hooks (#5542)
This commit is contained in:
parent
9555d348de
commit
b021b26e77
3 changed files with 19 additions and 3 deletions
|
|
@ -185,6 +185,12 @@ export interface Hooks {
|
|||
}[]
|
||||
},
|
||||
) => Promise<void>
|
||||
"experimental.chat.system.transform"?: (
|
||||
input: {},
|
||||
output: {
|
||||
system: string[]
|
||||
},
|
||||
) => Promise<void>
|
||||
"experimental.text.complete"?: (
|
||||
input: { sessionID: string; messageID: string; partID: string },
|
||||
output: { text: string },
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue