feat: add multimodal analysis support to LLM moderation client by processing image attachments

This commit is contained in:
MythEclipse
2026-05-17 23:56:04 +07:00
parent 059d569566
commit 51dc1f8869
21 changed files with 443 additions and 83 deletions
+2 -9
View File
@@ -2,11 +2,7 @@ export class AppError extends Error {
public code: string;
public statusCode: number;
constructor(
message: string,
code: string,
statusCode: number = 500,
) {
constructor(message: string, code: string, statusCode: number = 500) {
super(message);
this.code = code;
this.statusCode = statusCode;
@@ -39,10 +35,7 @@ export class VoiceConnectionError extends AppError {
export class ValidationError extends AppError {
public details?: Record<string, string[]>;
constructor(
message: string,
details?: Record<string, string[]>,
) {
constructor(message: string, details?: Record<string, string[]>) {
super(message, "VALIDATION_ERROR", 400);
this.details = details;
this.name = "ValidationError";