contentai / article_rewriter.py

Commit History

  1. Standardize WordPress writes on pull relay Running

    webmazta
    f21ca98

  1. Publish WordPress posts through pull relay

    webmazta
    fe9e90a

  1. Harden WordPress upload routing

    webmazta
    ad6287a

  1. Route WordPress bridge through verified IPv4 origin

    webmazta
    b6dd5e4
  2. Add authenticated WordPress upload bridge

    webmazta
    8fcbced

  1. Add WordPress media upload fallbacks

    webmazta
    3294c62

  1. fix: ensure output directory exists before saving featured images

    webmazta
    00785d3
  2. fix: use absolute paths for all runtime directories (downloads/, output/, cache files)

    webmazta
    22f0ecf

  1. fix: X/Twitter embeds now output as standalone paragraph URLs

    webmazta
    65f0c83
  2. fix: remove aggressive heuristic filter — let AI judge all images

    webmazta
    c9080d8
  3. improve: rewrite prompt for professional depth + humanized tone

    webmazta
    bd4a9bd
  4. fix: handle Wikimedia 429 rate limits + skip tiny images at API level

    webmazta
    79eb043

  1. fix: add debug logging to image validation pipeline

    webmazta
    0928bdf
  2. fix: replace blocked DDG image API with Wikimedia Commons + DDG fallback

    webmazta
    d4702c7
  3. fix: use DuckDuckGo image API instead of web search

    webmazta
    0f906f0
  4. feat: AI-enhanced related image search for articles

    webmazta
    c604408
  5. feat: replace OpenRouter/Groq with Gemma 4 as single AI engine

    webmazta
    b21e6da
  6. fix: wrap all numpy values in float/int to avoid ambiguous truth errors

    webmazta
    08e73b4
  7. feat: replace AI image filter with local OpenCV scorer

    webmazta
    820607e

  1. fix: switch WP uploads to multipart/form-data encoding

    webmazta
    b17cd81
  2. perf: slash cooldowns to absolute minimum

    webmazta
    80adb7f
  3. fix: switch WP upload from auth tuple to Authorization header

    webmazta
    2044729
  4. chore: set primary model to nemotron-3-super-120b

    webmazta
    371c554
  5. perf: aggressive cooldown reduction with OpenRouter credits

    webmazta
    23e071a
  6. fix: use full OpenRouter fallback chain in image filter

    webmazta
    fdd6ebc
  7. feat: expand OpenRouter fallback chain with 3 more free models

    webmazta
    4b8cf0d
  8. feat: add OpenRouter fallback model chain before Groq

    webmazta
    671f367
  9. perf: reduce all cooldowns by 70% for Gemma models

    webmazta
    939a9ef
  10. chore: switch default LLM from qwen3.6-plus to google/gemma-4-31b-it:free

    webmazta
    863cd29
  11. fix(article): fix 403 errors on image downloads and JSON-LD parsing

    webmazta
    f896361

  1. feat(article): 4-layer featured image fallback system

    webmazta
    7650b13
  2. fix(article): improve image extraction for lazy-loaded and JSON-LD images

    webmazta
    cb096d4
  3. fix(article): always use 3:1 collage for featured images

    webmazta
    eea5613

  1. fix(article): remove dark overlay from featured images

    webmazta
    d89ce1c
  2. feat(article): remove title overlay from featured images

    webmazta
    9c4c988
  3. feat(article): editorial 3:1 collage for featured images with title overlay

    webmazta
    e496aa9
  4. feat(article): preserve local context in titles + add robust validation

    webmazta
    1ca4206
  5. feat(article): add quote preservation rules to rewrite prompt

    webmazta
    f0ab175
  6. fix: add User-Agent header to article media uploads to bypass WAF

    webmazta
    56941a8
  7. fix: read API keys at call time so OpenRouter is always tried first

    webmazta
    5573295
  8. fix: validate WP_URL early and fix aiohttp None header crash

    webmazta
    ea9eea2
  9. feat(article): add rate limit guardrails + humanized content rewrite

    webmazta
    2f02823
  10. feat(llm): add 90s cooldown + auto-retry on OpenRouter rate limit (429)

    webmazta
    4b270d1

  1. fix(wp): handle bot verification blocks and fix SQLite database locking

    webmazta
    a8496a0
  2. fix(ai): use correct Groq model IDs and add detailed API error logging

    webmazta
    17e56e5
  3. Add Redo button and UI improvements (manual tab switching and initiation toasts)

    webmazta
    cd67bfc

  1. Fix security vulnerabilities, optimize performance, and improve error handling⁠

    Webmazta
    5554638

  1. Systemic DNS fix: Force IPv4 monkeypatch for all requests/socket resolution to bypass Hugging Face Meta domain blocks

    Webmazta
    f5f6762
  2. Align WordPress API logic in article_rewriter with main.py (Simplify headers to working state)

    Webmazta
    89c7844
  3. Enhance headers to bypass LiteSpeed bot detection on WordPress

    Webmazta
    3d8b655