HR-ATS-Portal/backend/inbox
Talha Ahmed 06427a4f32 Run gpt-4o-mini in production and cut OpenAI spend without changing outputs
- .env.example documents the production model (gpt-4o-mini-2024-07-18) and a
  4000-token output cap; the model rejects caps above 16384 with a 400, which
  the old 32768 value triggered on every llm_call request.
- llm_setup: safe default cap and per-call token/cache usage logging.
- agent/prompt: job posts precede the resume so the stable block hits the
  prompt cache for every CV after the first in a sync run.
- inbox: On-Hold rescan pairs candidates with active jobs only; scores against
  closed roles were paid for and never shown.
- app: ruff formatting for the config/model edits from main, and an accurate
  comment on why gpt-4o-mini is admitted while the rest of gpt-4o is not.

Verified live on gpt-4o-mini: llm_call and the scorer both succeed, the
28-check scoring audit passes, ruff/mypy/pytest pass for app.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-09 15:58:07 +05:00
..
decoded_attachments Merge branch 'main' of https://git.utopiadeals.com/utopia-ai/HR-ATS-Portal into Dashboard_Wiring 2026-08-12 14:00:07 +05:00
app.py RESCAN IMPLEMENTED 2026-09-08 15:25:43 +05:00
cv_tasks.py backend manual uplaod 2026-08-11 20:34:02 +05:00
enums.py enumbs added 2026-08-11 14:01:19 +05:00
file_decoder.py s3 configured pending testing 2026-08-28 13:32:25 +05:00
mailbox_sync_tasks.py . 2026-08-31 17:35:34 +05:00
models.py RESCAN IMPLEMENTED 2026-09-08 15:25:43 +05:00
plugins.py s3 lionk done 2026-09-07 19:32:49 +05:00
semaphore.py implemented semaphhore 2026-08-25 17:29:44 +05:00
serializers.py RESCAN IMPLEMENTED 2026-09-08 15:25:43 +05:00
sync_tasks.py talet pool api done 2026-08-10 21:01:51 +05:00
tasks.py RESCAN IMPLEMENTED 2026-09-08 15:25:43 +05:00
views.py Run gpt-4o-mini in production and cut OpenAI spend without changing outputs 2026-09-09 15:58:07 +05:00