take model for /ai/chat

This commit is contained in:
2026-01-31 14:16:29 +00:00
parent 95beddaa6c
commit f6d74927d6
3 changed files with 4 additions and 3 deletions

View File

@@ -671,6 +671,7 @@ export const ChatRequestSchema = z.object({
orgId: z.coerce.number().int().positive("orgId must be a positive integer"),
projectId: z.coerce.number().int().positive("projectId must be a positive integer"),
message: z.string().min(1, "Message is required"),
model: z.string().min(1, "Model is required"),
});
export type ChatRequest = z.infer<typeof ChatRequestSchema>;