-
Notifications
You must be signed in to change notification settings - Fork 278
refactor(core): restructure project architecture #571
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
✅ Deploy Preview for vllm-semantic-router ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
👥 vLLM Semantic Team NotificationThe following members have been identified for the changed files in this PR and have been automatically assigned: 📁
|
|
Follow up, API refactoring. |
df1c981 to
19b2efd
Compare
19b2efd to
842bbc5
Compare

PR Description
What type of PR is this?
refactor(core): restructure project architecture and consolidate test files
What this PR does / why we need it:
This PR performs a major refactoring of the project's core architecture to improve code organization, maintainability, and clarity. The key changes include:
Configuration Reorganization
config/directory with clear categorization:intelligent-routing/- routing configurations (in-tree and out-tree)semantic-cache/- caching configurationsobservability/- tracing and monitoring configsprompt-guard/- security domain configurationstesting/- test-specific configurationsintegration/- integration-specific configs with dedicated READMEsRECIPES.md,config.recipe-*.yaml)config.development.yaml,config.production.yaml)API Server Refactoring
pkg/api/server.go(1604 lines) into modular route handlers:route_classify.go- classification endpointsroute_embeddings.go- embedding endpointsroute_model_info.go- model information endpointsroute_models.go- model listing endpointsroute_system_prompt.go- system prompt endpointsroute_api_doc.go- API documentation endpointsPackage Structure Improvements
pkg/utils/classification/→pkg/classification/(promoted to top-level package)pkg/connectivity/mcp/→pkg/mcp/(simplified path)pkg/metrics/→pkg/observability/metrics/pkg/observability/tracing/(consolidated tracing logic)pkg/observability/logging/(new logging abstraction)Test Consolidation
cache_test.goclassifier_test.gostream_handling_test.goDocumentation Updates
server.py→server_keyword.py)Impact
This refactoring sets a solid foundation for future development by making the codebase more navigable and maintainable.