Commit Graph

34 Commits

Author SHA1 Message Date
IGNY8 VPS (Salman)
78c9cd38e0 fixed site id issue for credits in wdigets for specific site 2026-01-13 00:32:49 +00:00
IGNY8 VPS (Salman)
854b3efd45 image s imsages images model fixes new model see dream 2026-01-10 13:16:05 +00:00
IGNY8 VPS (Salman)
622e66b0fb iamge genration credits fixing - not fixed 2026-01-10 09:39:17 +00:00
IGNY8 VPS (Salman)
9ca048fb9d Phase 3 - credts, usage, plans app pages #Migrations 2026-01-06 21:28:13 +00:00
IGNY8 VPS (Salman)
dc7a459ebb django admin Groups reorg, Frontend udpates for site settings, #Migration runs 2026-01-05 01:21:52 +00:00
IGNY8 VPS (Salman)
c4de8994dd image gen mess 2026-01-03 22:31:30 +00:00
IGNY8 VPS (Salman)
f518e1751b IMage genartion service and models revamp - #Migration Runs 2026-01-03 20:08:16 +00:00
IGNY8 VPS (Salman)
826ad89a3e Remove aws-admin pattern completely - use account + GlobalIntegrationSettings
ARCHITECTURE FIX:
- aws-admin IntegrationSettings will NEVER exist (it's a legacy pattern)
- Only user's own account IntegrationSettings can exist (if they override defaults)
- Otherwise GlobalIntegrationSettings is used directly
- API keys are ALWAYS from GlobalIntegrationSettings (accounts cannot override API keys)

REMOVED:
- All aws-admin Account lookups
- All aws-admin IntegrationSettings fallback attempts
- Confusing nested try/except chains

CORRECT FLOW NOW:
1. Try account's IntegrationSettings for config overrides
2. Use GlobalIntegrationSettings for missing values and ALL API keys
3. No intermediate aws-admin lookups
2025-12-25 02:11:21 +00:00
IGNY8 VPS (Salman)
504d0174f7 Fix image generation: escape JSON in prompt template + GlobalIntegrationSettings fallback
ROOT CAUSES IDENTIFIED:
1. GlobalAIPrompt template had unescaped JSON braces that broke Python's .format()
   - Python treats {...} as placeholders, causing KeyError when rendering
   - Escaped JSON braces to {{...}} while preserving {title}, {content}, {max_images}

2. Image functions hardcoded aws-admin IntegrationSettings which didn't exist
   - Functions failed when aws-admin account had no IntegrationSettings
   - Added GlobalIntegrationSettings fallback for all missing values

CHANGES:
- Fixed GlobalAIPrompt.image_prompt_extraction template in database (escaped JSON)
- Updated generate_image_prompts._get_max_in_article_images() with fallback
- Updated generate_images.prepare_data() with fallback for all image settings
- Updated tasks.process_image_generation_queue() with fallback for config + API keys

TESTED: Template rendering now works, GlobalIntegrationSettings.max_in_article_images=4
2025-12-25 02:09:29 +00:00
IGNY8 VPS (Salman)
71fe687681 image max count 2025-12-17 13:06:42 +00:00
IGNY8 VPS (Salman)
8c1d933647 max iamges 2025-12-17 12:35:43 +00:00
IGNY8 VPS (Salman)
aba2c7da01 image genreation normal user permission fix 2025-12-10 14:52:31 +00:00
IGNY8 VPS (Salman)
0839455418 fine tuning 2025-11-28 12:25:45 +00:00
IGNY8 VPS (Salman)
25b1aa39b0 Step 5: Validate account_id is required and exists in tasks.py
- Make account_id parameter required (remove default None)
- Validate account_id is provided before proceeding
- Validate account exists in database
- Return proper error responses with error_type
- Update function docstring to reflect required parameter
2025-11-16 09:22:33 +00:00
Desktop
f8648ecab1 image sizes update in image gen function 2025-11-12 19:20:06 +05:00
Desktop
c508c888aa Enhance image size configuration and integration settings. Default image sizes are now set based on provider and model, with options for featured, desktop, and mobile images. Updated frontend to allow selectable image sizes in settings. 2025-11-12 18:43:32 +05:00
Desktop
a2c67e7249 featured image size runware 2025-11-12 18:18:16 +05:00
Desktop
1a51e6bc39 image url 2025-11-12 10:46:01 +05:00
IGNY8 VPS (Salman)
7ff3eafb51 iamge path 2025-11-12 05:23:28 +00:00
IGNY8 VPS (Salman)
03909a1fab Enhance image processing and error handling in AICore and tasks
- Improved response parsing in AICore to handle both array and dictionary formats, including detailed error logging.
- Updated image directory handling in tasks to prioritize web-accessible paths for image storage, with robust fallback mechanisms.
- Adjusted image URL generation in serializers and frontend components to support new directory structure and ensure proper accessibility.
2025-11-12 04:45:13 +00:00
IGNY8 VPS (Salman)
c29ecc1664 some improvements 2025-11-12 04:28:13 +00:00
IGNY8 VPS (Salman)
645c6f3f9e Refactor image processing and add image file serving functionality
- Updated image directory handling to prioritize mounted volume for persistence.
- Enhanced logging for directory write tests and fallback mechanisms.
- Introduced a new endpoint to serve image files directly from local paths.
- Added error handling for file serving, including checks for file existence and readability.
- Updated the frontend to include a new ContentView component and corresponding route.
2025-11-12 01:24:44 +00:00
Desktop
18505de848 asd 2025-11-12 06:09:07 +05:00
Desktop
1860c22320 progress bar issues 2025-11-12 06:01:49 +05:00
Desktop
2371479636 Migrations 2025-11-12 05:39:45 +05:00
Desktop
86b5e48bae 12212 2025-11-12 05:25:14 +05:00
Desktop
b0e2888b09 d 2025-11-12 05:13:56 +05:00
Desktop
84111f5ad6 asd 2025-11-12 05:05:54 +05:00
Desktop
584233a7b2 a 2025-11-12 04:57:12 +05:00
Desktop
4373657147 asd 2025-11-12 04:54:12 +05:00
Desktop
b132099e66 prompt issues fixes 2025-11-12 04:41:30 +05:00
Desktop
19b4c9faa3 image generation function implementation 2025-11-12 04:32:42 +05:00
Gitea Deploy
961362e088 Add SEO fields to Tasks model, improve content generation response handling, and enhance progress bar animation
- Added primary_keyword, secondary_keywords, tags, and categories fields to Tasks model
- Updated generate_content function to handle full JSON response with all SEO fields
- Improved progress bar animation: smooth 1% increments every 300ms
- Enhanced step detection for content generation vs clustering vs ideas
- Fixed progress modal to show correct messages for each function type
- Added comprehensive logging to Keywords and Tasks pages for AI functions
- Fixed error handling to show meaningful error messages instead of generic failures
2025-11-09 21:22:34 +00:00
igny8
60b8188111 Initial commit: igny8 project 2025-11-09 10:27:02 +00:00