Update
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user