feat: sync deployed v1.0.0-rc.38-custom.42
Sync production source including routing, billing, Astra detection and public uptime. Update custom build instructions and license packaging.
This commit is contained in:
1 parent
aa6c3f50f4
commit
ceddfd3d6b
828 files changed
+122253
-13702
No files matched your search
@@ -25,6 +25,7 @@ import (
|
||||
"github.com/QuantumNous/new-api/oauth"
|
||||
"github.com/QuantumNous/new-api/pkg/jsplugin"
|
||||
perfmetrics "github.com/QuantumNous/new-api/pkg/perf_metrics"
|
||||
"github.com/QuantumNous/new-api/pkg/wsmanager"
|
||||
"github.com/QuantumNous/new-api/relay"
|
||||
kitutil "github.com/QuantumNous/new-api/relaykit/relayconvert/kitutil"
|
||||
"github.com/QuantumNous/new-api/router"
|
||||
@@ -104,6 +105,7 @@ func main() {
|
||||
|
||||
go model.SyncChannelCache(common.SyncFrequency)
|
||||
}
|
||||
wsmanager.StartSubscriber(context.Background())
|
||||
|
||||
// Warm pricing after channel cache initialization so Advanced Custom
|
||||
// endpoint inference can read cached route settings on first request.
|
||||
@@ -155,6 +157,7 @@ func main() {
|
||||
// switch are enforced inside the runner and each handler's Enabled().
|
||||
controller.RegisterScheduledSystemTasks()
|
||||
service.StartSystemTaskRunner()
|
||||
service.StartRelayAttemptRecovery()
|
||||
|
||||
if os.Getenv("BATCH_UPDATE_ENABLED") == "true" {
|
||||
common.BatchUpdateEnabled = true
|
||||
|
||||
Reference in new issue
Block a user