Classify images inline instead of via batch API #86
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/issue-84-inline-vision"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Replaces the overnight Batch API vision job with inline image classification that runs in the stream fetch job, immediately after the text check:
save_fetched_postsnow returns the newly-savedPostobjects, so classification is scoped to the current fetch — not the historical backlog.ai_batch.py→ai_vision.py: the Batch API machinery (JSONL build/shard/upload/poll) and theai_vision_batchcron job are gone._classify_fetched_postsruns text + vision inline per post. A failed download/API call leaves the postai_would_reject = NULL(pending, reviewed manually); a post with no still image is marked pass.AI_BATCH_HOURsetting; updated docs.Also fixes the flaky test suite (intermittent
SECRET_KEY placeholdererrors) by settingSECRET_KEYin the AI test files before thesettingssingleton is imported.Closes #84
Closes #82