Commit Graph

19 Commits

Author SHA1 Message Date
alorig
c29984ad91 Merge branch 'main' of https://git.igny8.com/salman/igny8 2025-12-25 11:02:28 +05:00
IGNY8 VPS (Salman)
02d4f1fa46 AI MODELS & final updates - feat: Implement AI Model Configuration with dynamic pricing and REST API
- Added AIModelConfig model to manage AI model configurations in the database.
- Created serializers and views for AI model configurations, enabling read-only access via REST API.
- Implemented filtering capabilities for model type, provider, and default status in the API.
- Seeded initial data for text and image models, including pricing and capabilities.
- Updated Django Admin interface for managing AI models with enhanced features and bulk actions.
- Added validation methods for model and image size checks.
- Comprehensive migration created to establish the AIModelConfig model and seed initial data.
- Documented implementation and validation results in summary and report files.
2025-12-24 13:37:36 +00:00
IGNY8 VPS (Salman)
d768ed71d4 New Model & tokens/credits updates 2025-12-23 06:26:15 +00:00
IGNY8 VPS (Salman)
1d4825ad77 refactor: Fix AI billing system - revert to commit #10 + fixes
- Reverted to commit #10 (98e68f6) for stable AI function base
- Fixed database migrations: removed 0018-0019 that broke schema
- Fixed CreditCostConfig schema: restored credits_cost, unit fields
- Fixed historical table schema for django-simple-history
- Added debug system (staged for future use)

Changes:
- CreditCostConfig: Updated OPERATION_TYPE_CHOICES (10 ops, no duplicates)
- CreditUsageLog: Updated choices with legacy aliases marked
- Migration 0018_update_operation_choices: Applied successfully
- All AI operations working (clustering, ideas, content, optimization, etc.)

Test Results:
✓ CreditCostConfig save/load working
✓ Credit check passing for all operations
✓ AICore initialization successful
✓ AIEngine operation mapping functional
✓ Admin panel accessible without 500 errors

Future: AI-MODEL-COST-REFACTOR-PLAN.md created for token-based system
2025-12-23 05:21:52 +00:00
IGNY8 VPS (Salman)
c17b22e927 credits adn tokens final correct setup 2025-12-20 00:36:23 +00:00
IGNY8 VPS (Salman)
125489df0f django admin improvement complete 2025-12-15 01:38:41 +00:00
IGNY8 VPS (Salman)
6e2101d019 feat: add Usage Limits Panel component with usage tracking and visual indicators for limits
style: implement custom color schemes and gradients for account section, enhancing visual hierarchy
2025-12-12 13:15:15 +00:00
IGNY8 VPS (Salman)
4d13a57068 feat(billing): add missing payment methods and configurations
- Added migration to include global payment method configurations for Stripe and PayPal (both disabled).
- Ensured existing payment methods like bank transfer and manual payment are correctly configured.
- Added database constraints and indexes for improved data integrity in billing models.
- Introduced foreign key relationship between CreditTransaction and Payment models.
- Added webhook configuration fields to PaymentMethodConfig for future payment gateway integrations.
- Updated SignUpFormUnified component to handle payment method selection based on user country and plan.
- Implemented PaymentHistory component to display user's payment history with status indicators.
2025-12-09 06:14:44 +00:00
IGNY8 VPS (Salman)
72d0b6b0fd fixes fixes fixes tenaancy 2025-12-09 02:43:51 +00:00
IGNY8 VPS (Salman)
bfbade7624 Complete Implemenation of tenancy 2025-12-09 00:11:35 +00:00
IGNY8 VPS (Salman)
74e29380fe asdasdad 2025-12-08 20:06:39 +00:00
alorig
92d16c76a7 Revert "sadasd"
This reverts commit 9f85ce4f52.
2025-12-09 00:26:01 +05:00
IGNY8 VPS (Salman)
9f85ce4f52 sadasd 2025-12-08 18:22:10 +00:00
IGNY8 VPS (Salman)
c455a5ad83 many fixes 2025-12-06 14:31:42 +00:00
IGNY8 VPS (Salman)
1e718105f2 billing admin account 1 2025-12-05 08:01:55 +00:00
IGNY8 VPS (Salman)
3a7ea1f4f3 docs and billing adn acaoutn 40% 2025-12-04 23:56:38 +00:00
IGNY8 VPS (Salman)
40dfe20ead fina autoamtiona adn billing and credits 2025-12-04 15:54:15 +00:00
IGNY8 VPS (Salman)
1134285a12 Update app labels for billing, writer, and planner models; fix foreign key references in automation migrations
- Set app labels for CreditTransaction and CreditUsageLog models to 'billing'.
- Updated app labels for Tasks, Content, and Images models to 'writer'.
- Changed foreign key references in automation migrations from 'account' to 'tenant' for consistency.
2025-11-16 22:37:16 +00:00
IGNY8 VPS (Salman)
7f8982a0ab Add scheduled automation task and update URL routing
- Introduced a new scheduled task for executing automation rules every 5 minutes in the Celery beat schedule.
- Updated URL routing to include a new endpoint for automation-related functionalities.
- Refactored imports in various modules to align with the new business layer structure, ensuring backward compatibility for billing models, exceptions, and services.
2025-11-16 22:11:05 +00:00