mirror of
https://github.com/Wei-Shaw/sub2api.git
synced 2026-11-20 15:06:36 +00:00
revert: completely remove all Sora functionality
Remove ALL Sora code — client, gateway, generation, S3 storage, accounts, media, SDK, quota, scheduling, billing, OAuth, settings, and frontend UI. Backend: 60+ files deleted/cleaned, including service layer (scheduling, billing, token provider), handler layer (client/gateway handlers, DTOs), repository layer (sora repos), config, wire DI, routes, domain constants. Frontend: 14 files deleted + 29 files cleaned, including components, views, API clients, composables, i18n keys, types, router entries. Cloudflare challenge detection migrated from soraerror to httputil package. Migration files retained (046/047/063/070) to preserve DB migration history. 136 files changed, ~24,300 lines removed. All tests pass.
This commit is contained in:
1 parent
60d84d621c
commit
dece8987e9
136 files changed
+210
-24127
No files matched your search
@@ -862,14 +862,6 @@ func (h *GatewayHandler) Models(c *gin.Context) {
|
||||
platform = forcedPlatform
|
||||
}
|
||||
|
||||
if platform == service.PlatformSora {
|
||||
c.JSON(http.StatusOK, gin.H{
|
||||
"object": "list",
|
||||
"data": service.DefaultSoraModels(h.cfg),
|
||||
})
|
||||
return
|
||||
}
|
||||
|
||||
// Get available models from account configurations (without platform filter)
|
||||
availableModels := h.gatewayService.GetAvailableModels(c.Request.Context(), groupID, "")
|
||||
|
||||
|
||||
Reference in new issue
Block a user