MCPcopy Create free account
hub / github.com/QuantumNous/new-api / chooseStatus

Function chooseStatus

controller/model_sync.go:488–496  ·  view source on GitHub ↗
(primary, fallback int)

Source from the content-addressed store, hash-verified

486}
487
488func chooseStatus(primary, fallback int) int {
489 if primary == 0 && fallback != 0 {
490 return fallback
491 }
492 if primary != 0 {
493 return primary
494 }
495 return 1
496}
497
498// SyncUpstreamPreview 预览上游与本地的差异(仅用于弹窗选择)
499func SyncUpstreamPreview(c *gin.Context) {

Callers 3

ensureVendorIDFunction · 0.85
SyncUpstreamModelsFunction · 0.85
SyncUpstreamPreviewFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected