This commit is contained in:
NAME
2026-05-31 04:03:01 +00:00
parent f39d5dd5ee
commit 7bed7d937c
2 changed files with 4 additions and 1 deletions
@@ -39,7 +39,7 @@ export class ContentWriterController {
language: dto.lang, language: dto.lang,
originalPost: dto.tweet_text originalPost: dto.tweet_text
} }
return this.commentService.generateComment(dto0); return this.commentService.generateComment(dto0, dto.allowTranslateToVi != 0);
} }
@Post('comment/variants') @Post('comment/variants')
@@ -25,4 +25,7 @@ export class GenerateCommentAdapterExtDto {
@IsOptional() @IsOptional()
@IsString() @IsString()
persona?: string; // "crypto trader", "news analyst"... persona?: string; // "crypto trader", "news analyst"...
@IsOptional()
allowTranslateToVi?:number;
} }