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

Function buildOpenclawResolvedModelIDMap

agent/app/service/agents_utils.go:976–986  ·  view source on GitHub ↗
(account *model.AgentAccount, accountModels []dto.AgentAccountModel)

Source from the content-addressed store, hash-verified

974}
975
976func buildOpenclawResolvedModelIDMap(account *model.AgentAccount, accountModels []dto.AgentAccountModel) (map[string]string, error) {
977 result := make(map[string]string, len(accountModels))
978 for _, item := range accountModels {
979 resolvedPrimary, _, _, _, err := buildOpenclawAccountModelConfig(account, item)
980 if err != nil {
981 return nil, err
982 }
983 result[resolvedPrimary] = item.ID
984 }
985 return result, nil
986}
987
988func prepareOpenclawInstallFiles(appInstall *model.AppInstall, account *model.AgentAccount, modelName, token string, allowedOrigins []string) error {
989 if appInstall == nil {

Callers 2

Calls 1

Tested by

no test coverage detected