MCPcopy Create free account
hub / github.com/APIParkLab/APIPark / AddProvider

Method AddProvider

controller/ai/iml.go:27–32  ·  view source on GitHub ↗
(ctx *gin.Context, input *ai_dto.NewProvider)

Source from the content-addressed store, hash-verified

25}
26
27func (i *imlProviderController) AddProvider(ctx *gin.Context, input *ai_dto.NewProvider) (*ai_dto.SimpleProvider, error) {
28 if !common.ModelNameValid(input.Name) {
29 return nil, fmt.Errorf("name illegal(a-zA-Z0-9-_.:/)")
30 }
31 return i.module.AddProvider(ctx, input)
32}
33
34//func (i *imlProviderController) Sort(ctx *gin.Context, input *ai_dto.Sort) error {
35// return i.module.Sort(ctx, input)

Callers

nothing calls this directly

Calls 2

ModelNameValidFunction · 0.92
AddProviderMethod · 0.65

Tested by

no test coverage detected