(conf map[string]interface{}, account *model.AgentAccount, accountModels []dto.AgentAccountModel)
| 918 | } |
| 919 | |
| 920 | func extractOpenclawPrimaryModelID(conf map[string]interface{}, account *model.AgentAccount, accountModels []dto.AgentAccountModel) string { |
| 921 | modelMap := openclawModelRefMap(conf) |
| 922 | primary := strings.TrimSpace(fmt.Sprintf("%v", modelMap["primary"])) |
| 923 | if primary == "" { |
| 924 | return "" |
| 925 | } |
| 926 | resolved, err := buildOpenclawResolvedModelIDMap(account, accountModels) |
| 927 | if err != nil { |
| 928 | return "" |
| 929 | } |
| 930 | return resolved[primary] |
| 931 | } |
| 932 | |
| 933 | func extractOpenclawFallbackModelIDs(conf map[string]interface{}, account *model.AgentAccount, accountModels []dto.AgentAccountModel, primaryModel string) []string { |
| 934 | modelMap := openclawModelRefMap(conf) |
no test coverage detected