Skip to content

Commit

Permalink
feature:FUR-49 update AI 2D model, Update plan price, credits
Browse files Browse the repository at this point in the history
  • Loading branch information
MinhhTien committed Jun 16, 2024
1 parent 5f986cc commit 78acebf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions src/ai-generation/contracts/constant.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export enum AIGenerationTaskProgress {
SUCCESS = 100
}

export const DEFAULT_CREDITS = 50;
export const DEFAULT_CREDITS = 30;

export enum AIGenerationPricing {
TEXT_TO_MODEL = 15,
Expand All @@ -41,11 +41,11 @@ export enum AIPricingPlan {
}

export const AIPricingPlanCost = {
[AIPricingPlan.PERSONAL] : 2000, // 199000,
[AIPricingPlan.PREMIUM] : 499000
[AIPricingPlan.PERSONAL] : 2000, // 49000,
[AIPricingPlan.PREMIUM] : 119000
}

export const AIPricingPlanCredits = {
[AIPricingPlan.PERSONAL] : 250,
[AIPricingPlan.PREMIUM] : 600
[AIPricingPlan.PERSONAL] : 60,
[AIPricingPlan.PREMIUM] : 150
}
2 changes: 1 addition & 1 deletion src/ai-generation/controllers/text-to-image.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export class AIGenerationTextToImageController {
@ApiOkResponse({ type: TextToImageResponseDto })
@Post()
generate(@Req() req, @Body() generateTextToImageDto: GenerateTextToImageDto) {
generateTextToImageDto.providers = ["amazon", 'amazon/titan-image-generator-v1_premium', 'amazon/titan-image-generator-v1_standard', 'openai/dall-e-2']
generateTextToImageDto.providers = ['openai/dall-e-2', 'openai/dall-e-3', 'openai', "amazon", 'amazon/titan-image-generator-v1_premium', 'amazon/titan-image-generator-v1_standard']
generateTextToImageDto.resolution = "512x512"
generateTextToImageDto.customerId = _.get(req, 'user._id')
return this.aiGenerationTextToImageService.generateTextToImage(generateTextToImageDto)
Expand Down

0 comments on commit 78acebf

Please sign in to comment.