mirror of
https://github.com/Heretek-AI/AetherTable.git
synced 2026-11-13 00:01:31 -10:00
classify_with_llm() prompts the configured custom endpoint (LLM_API/LLM_KEY/LLM_MODEL) for JSON classification into the real IntentType enum, with layered honesty and safety: - SAFETY_INTERVENTION always wins — keyword safety short-circuits before any network call; an LLM safety label overrides keyword disagreement - any failure (kill-switch VTT_LLM_CLASSIFIER=0, no key, malformed or unknown output) falls back to the deterministic keyword classifier with provenance fields; never raises - RULE_OF_COOL has no enum counterpart and is deliberately not mapped complete_json() adds fence-tolerant JSON extraction + non-streaming chat-completions with response_format json_object; degraded-marker code preserved. 12 new tests, HTTP fully mocked. Co-Authored-By: Claude <[email protected]>