32 lines
508 B
TypeScript
32 lines
508 B
TypeScript
import { IsOptional, IsString, IsUUID, MaxLength } from 'class-validator';
|
|
|
|
export class ChatRequestDto {
|
|
@IsOptional()
|
|
@IsUUID()
|
|
conversationId?: string;
|
|
|
|
@IsString()
|
|
@MaxLength(10_000)
|
|
content!: string;
|
|
}
|
|
|
|
export class ChatSocketMessageDto {
|
|
@IsOptional()
|
|
@IsUUID()
|
|
conversationId?: string;
|
|
|
|
@IsString()
|
|
@MaxLength(10_000)
|
|
content!: string;
|
|
|
|
@IsOptional()
|
|
@IsString()
|
|
@MaxLength(255)
|
|
provider?: string;
|
|
|
|
@IsOptional()
|
|
@IsString()
|
|
@MaxLength(255)
|
|
modelId?: string;
|
|
}
|