feat: allow hook model overrides
This commit is contained in:
@@ -216,6 +216,8 @@ export type HookMappingConfig = {
|
||||
| "signal"
|
||||
| "imessage";
|
||||
to?: string;
|
||||
/** Override model for this hook (provider/model or alias). */
|
||||
model?: string;
|
||||
thinking?: string;
|
||||
timeoutSeconds?: number;
|
||||
transform?: HookMappingTransform;
|
||||
|
||||
@@ -743,6 +743,7 @@ const HookMappingSchema = z
|
||||
])
|
||||
.optional(),
|
||||
to: z.string().optional(),
|
||||
model: z.string().optional(),
|
||||
thinking: z.string().optional(),
|
||||
timeoutSeconds: z.number().int().positive().optional(),
|
||||
transform: z
|
||||
|
||||
Reference in New Issue
Block a user