Skip to content

Commit

Permalink
feature:FUR-13 [BE][Web] update response doc gen text to model API
Browse files Browse the repository at this point in the history
  • Loading branch information
MinhhTien committed May 20, 2024
1 parent 2d17288 commit 7ef863b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ai-generation/controllers/text-to-model.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { UserRole } from '@common/contracts/constant'
import { RolesGuard } from '@auth/guards/roles.guard'
import { JwtAuthGuard } from '@auth/guards/jwt-auth.guard'
import { AIGenerationTextToModelService } from '@ai-generation/services/text-to-model.service'
import { GenerateTextToDraftModelDto, TextToModelTaskResponseDto } from '@ai-generation/dtos/text-to-model.dto'
import { GenerateTextToDraftModelDto, TextToDraftModelResponseDto, TextToModelTaskResponseDto } from '@ai-generation/dtos/text-to-model.dto'

@ApiTags('AIGeneration - TextToModel')
@ApiBearerAuth()
Expand All @@ -19,7 +19,7 @@ export class AIGenerationTextToModelController {
@ApiOperation({
summary: 'Generate draft model from text'
})
@ApiOkResponse({ type: TextToModelTaskResponseDto })
@ApiOkResponse({ type: TextToDraftModelResponseDto })
@Post()
generate(@Req() req, @Body() generateTextToDraftModelDto: GenerateTextToDraftModelDto) {
generateTextToDraftModelDto.type = 'text_to_model'
Expand Down

0 comments on commit 7ef863b

Please sign in to comment.