MCPcopy Create free account
hub / github.com/1Panel-dev/1Panel / asyncReportAIProviderInstall

Function asyncReportAIProviderInstall

agent/app/service/agents_utils.go:1613–1625  ·  view source on GitHub ↗
(provider string)

Source from the content-addressed store, hash-verified

1611}
1612
1613func asyncReportAIProviderInstall(provider string) {
1614 if global.CONF.Base.Mode != "stable" || provider == "" {
1615 return
1616 }
1617 go func(provider string) {
1618 query := url.Values{}
1619 query.Set("product", "ai-provider")
1620 query.Set("type", "install")
1621 query.Set("version", provider)
1622 reqURL := "https://community.fit2cloud.com/installation-analytics?" + query.Encode()
1623 _, _, _ = req_helper.HandleRequest(reqURL, http.MethodGet, constant.TimeOut5s)
1624 }(provider)
1625}

Callers 1

CreateAccountMethod · 0.85

Calls 1

SetMethod · 0.45

Tested by

no test coverage detected