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

Function GetMissingModels

controller/missing_models.go:14–28  ·  view source on GitHub ↗

GetMissingModels returns the list of model names that are referenced by channels but do not have corresponding records in the models meta table. This helps administrators quickly discover models that need configuration.

(c *gin.Context)

Source from the content-addressed store, hash-verified

12// but do not have corresponding records in the models meta table.
13// This helps administrators quickly discover models that need configuration.
14func GetMissingModels(c *gin.Context) {
15 missing, err := model.GetMissingModels()
16 if err != nil {
17 c.JSON(http.StatusOK, gin.H{
18 "success": false,
19 "message": err.Error(),
20 })
21 return
22 }
23
24 c.JSON(http.StatusOK, gin.H{
25 "success": true,
26 "data": missing,
27 })
28}

Callers

nothing calls this directly

Calls 2

GetMissingModelsFunction · 0.92
ErrorMethod · 0.45

Tested by

no test coverage detected