MCPcopy Index your code
hub / github.com/APIParkLab/APIPark / Load

Function Load

ai-provider/model-runtime/loader.go:81–100  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

79)
80
81func Load() error {
82 files, err := providerDir.ReadDir("model-providers")
83 if err != nil {
84 return err
85 }
86 for _, file := range files {
87 if !file.IsDir() {
88 continue
89 }
90 name := fmt.Sprintf("model-providers/%s", file.Name())
91 if file.Name() == "customize" {
92 continue
93 }
94 err = LoadProvider(name)
95 if err != nil {
96 return err
97 }
98 }
99 return nil
100}
101
102func LoadProvider(name string) error {
103 files, err := providerDir.ReadDir(name)

Callers 2

TestLoadFunction · 0.85
initFunction · 0.85

Calls 2

LoadProviderFunction · 0.85
NameMethod · 0.65

Tested by 1

TestLoadFunction · 0.68