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

Method SimpleConfiguredProviders

controller/ai/iml.go:50–55  ·  view source on GitHub ↗
(ctx *gin.Context, all string)

Source from the content-addressed store, hash-verified

48}
49
50func (i *imlProviderController) SimpleConfiguredProviders(ctx *gin.Context, all string) ([]*ai_dto.SimpleProviderItem, *ai_dto.BackupProvider, error) {
51 if all == "true" {
52 return i.module.SimpleConfiguredProviders(ctx, true)
53 }
54 return i.module.SimpleConfiguredProviders(ctx, false)
55}
56
57func (i *imlProviderController) Provider(ctx *gin.Context, id string) (*ai_dto.Provider, error) {
58 return i.module.Provider(ctx, id)

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected