auto-form / ai_clean.py

Commit History

  1. fix: letter lost the duration sentence when AI paraphrasing dropped the 'ภายใน X วัน' signal — (1) build_letter falls back to the raw TOR clause when cleaning loses it, (2) generate_body rejects AI bodies missing the supplied day-number⁠

    Menixis +1: Claude Fable 5
    b9e493a
  2. Auto-form: remove the OpenRouter backend entirely (org policy) — AI Builder flow is the only AI backend⁠

    Menixis +1: Claude Fable 5
    3f28237
  3. Auto-form: AI backend via Power Automate + AI Builder (AI_BACKEND env, OpenRouter kept for rollback)⁠

    Menixis +1: Claude Fable 5
    38e26ff

  1. Auto-form: same-model failover across accounts (seamless key rotation)⁠

    Menixis +1: Claude Opus 4.8 (1M context)
    18b092a
  2. Auto-form: rotate across multiple OpenRouter API keys on rate limit⁠

    Menixis +1: Claude Opus 4.8 (1M context)
    9879d74
  3. Auto-form: soften body verb -> 'ได้มีข้อตกลงในการจัดซื้อ/จัดจ้างกับ'⁠

    Menixis +1: Claude Opus 4.8 (1M context)
    b462261
  4. Auto-form: robust กำหนดส่งมอบ extraction (no wrong-section pulls)⁠

    Menixis +1: Claude Opus 4.8 (1M context)
    24f2f2e
  5. Auto-form: switch body to the "ตกลงว่าจ้าง…ให้ดำเนินการ" format, TOR-driven duration⁠

    Menixis +1: Claude Opus 4.8 (1M context)
    fce7fb0
  6. Auto-form: generate the body in the exact PTT 2-paragraph format⁠

    Menixis +1: Claude Opus 4.8 (1M context)
    256df8f
  7. Auto-form: always show งวด selector (single-งวด had no dropdown)⁠

    Menixis +1: Claude Opus 4.8 (1M context)
    83ce937
  8. Auto-form: AI-clean กำหนดส่งมอบ into the document + งวด selector⁠

    Menixis +1: Claude Opus 4.8 (1M context)
    0941280