3 Commits
Author SHA1 Message Date
slahiriandClaude Opus 4.5 737b8dddc5 Add prompt_length dropdown and Z-Image prompting best practices
- Add prompt_length dropdown (Short/Medium/Long/Free) to control output length
- Default to "Free" (no constraint) for maximum flexibility
- Updated prompts.toml with Z-Image best practices:
  - Structured format: composition → subject → clothing → lighting
  - Geometric face angles (front view, 45°, profile)
  - Specific lighting keywords (soft diffused daylight, rim lighting)
  - Cleanup constraints at end (no text, no watermark)
- Added get_length_constraint() to config_loader.py
- Length constraints applied to both single-shot and agentic pipelines

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-11 09:20:30 +05:30
slahiriandClaude Opus 4.5 d5a7c5338c Add second LLM call for user instruction enhancement
- Add _enhance_prompt_with_instructions() method that makes a second
  LLM call to intelligently apply user modifications to generated prompts
- Fix DynamicCache compatibility for newer transformers versions
  (seen_tokens and get_max_length attributes)
- Fix output token extraction to only decode new tokens, preventing
  system prompt from appearing in output
- Improve user guidance handling with MODIFICATION directive in
  system prompts for better instruction following
- Only call enhancement LLM when user_guidance is provided

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-11 06:30:02 +05:30
slahiriandClaude Opus 4.5 a10e69a940 Add TOML-based config for tier-specific prompts
Implements externalized configuration using TOML files for:
- Provider tiers (advanced/standard/basic) and stop strings
- Tier-specific system/user prompts for local vs cloud models
- Component prompts for agentic analysis by tier
- Output filter patterns for example text removal

Local models (Ollama, LM Studio) now get simplified prompts
without JSON output or complex numbered instructions.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-11 04:18:42 +05:30