Phase 4.3: Extract legacy/compat + core health endpoints#568
Merged
Conversation
…ator (#548) Phase 4.3 of orchestrator decomposition (Strangler Fig): - Extract 5 legacy telephony endpoints (/tts, /stt, /chat, /process_call, /reset_conversation) + 5 OpenAI-compatible endpoints (/v1/*) to modules/compat/router.py (~510 lines) - Extract core endpoints (/, /health, /admin/deployment-mode) to modules/core/router_health.py (~110 lines) - Remove dead duplicate auth endpoints and /admin/status (shadowed by routers) - All globals replaced with ServiceContainer via get_container() - Orchestrator: 3544 → 2875 lines (-669) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
/tts,/stt,/chat,/process_call,/reset_conversation) and OpenAI-compatible endpoints (/v1/models,/v1/voices,/v1/audio/speech,/v1/chat/completions) →modules/compat/router.py(~510 lines)/,/health,/admin/deployment-mode) →modules/core/router_health.py(~110 lines)/admin/statusthat were shadowed by routers registered earlierServiceContainerviaget_container()Key changes
modules/compat/router.pysynthesize_with_current_voicehelper + 10 endpointsmodules/core/router_health.pymodules/compat/__init__.pyorchestrator.pyTest plan
ruff checkpasses on all changed filesruff format --checkpassespytest tests/— all 65 tests passGET /healthreturns correct statusGET /v1/modelsreturns model list/tts,/stt,/chatendpoints still workCloses #548
🤖 Generated with Claude Code