mirror of
https://github.com/anomalyco/opencode.git
synced 2026-02-01 22:48:16 +00:00
core: add variant to chat.message input
This commit is contained in:
@@ -1064,6 +1064,7 @@ export namespace SessionPrompt {
|
||||
agent: input.agent,
|
||||
model: input.model,
|
||||
messageID: input.messageID,
|
||||
variant: input.variant,
|
||||
},
|
||||
{
|
||||
message: info,
|
||||
|
||||
@@ -154,7 +154,13 @@ export interface Hooks {
|
||||
* Called when a new message is received
|
||||
*/
|
||||
"chat.message"?: (
|
||||
input: { sessionID: string; agent?: string; model?: { providerID: string; modelID: string }; messageID?: string },
|
||||
input: {
|
||||
sessionID: string
|
||||
agent?: string
|
||||
model?: { providerID: string; modelID: string }
|
||||
messageID?: string
|
||||
variant?: string
|
||||
},
|
||||
output: { message: UserMessage; parts: Part[] },
|
||||
) => Promise<void>
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user