feat(api-ai): add provider registry and routing fallback

This commit is contained in:
2026-04-06 11:44:05 +08:00
parent 019436507e
commit 180f7a9baa
11 changed files with 1425 additions and 1 deletions
+17
View File
@@ -0,0 +1,17 @@
import { IsOptional, IsString, MinLength } from "class-validator";
export class AiChatDto {
@IsString()
@MinLength(1)
message!: string;
@IsOptional()
@IsString()
@MinLength(1)
sessionId?: string;
@IsOptional()
@IsString()
@MinLength(1)
bindingId?: string;
}