-
Notifications
You must be signed in to change notification settings - Fork 48
Add proxy deployment logic for the platform API #1092
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
base: main
Are you sure you want to change the base?
Conversation
WalkthroughThis PR introduces LLM proxy deployment management, a parallel system to existing LLM provider deployments. It adds data types, services, handlers, and event broadcasting for deploying, undeploying, restoring, and deleting LLM proxy deployments. Configuration updates skip JWT authentication for the new internal endpoint, and API documentation adds full endpoint definitions. Changes
Sequence DiagramsequenceDiagram
participant Client
participant Handler as LLMProxyDeploymentHandler
participant Service as LLMProxyDeploymentService
participant ProxyRepo as ProxyRepository
participant DeployRepo as DeploymentRepository
participant EventService as GatewayEventsService
Client->>Handler: POST /llm-proxies/{id}/deployments
Handler->>Handler: Validate organization & payload
Handler->>Service: DeployLLMProxy(proxyID, req, orgUUID)
Service->>ProxyRepo: Get proxy by ID
ProxyRepo-->>Service: Proxy data
Service->>Service: Generate YAML manifest
Service->>DeployRepo: Create deployment record
DeployRepo-->>Service: Deployment created
Service->>EventService: BroadcastLLMProxyDeploymentEvent
EventService-->>Service: Event broadcast result
Service-->>Handler: DeploymentResponse
Handler-->>Client: 201 Created
Estimated code review effort🎯 4 (Complex) | ⏱️ ~45 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 1 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (1 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
No actionable comments were generated in the recent review. 🎉 🧹 Recent nitpick comments
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary by CodeRabbit