feat: allow hook model overrides
This commit is contained in:
1 parent
e6f8e1e531
commit
73988506fe
12 files changed
+207
-3
No files matched your search
@@ -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