(modelID string, model dto.AgentAccountModel)
| 1066 | } |
| 1067 | |
| 1068 | func buildOpenclawModelEntry(modelID string, model dto.AgentAccountModel) modelEntry { |
| 1069 | name := strings.TrimSpace(model.Name) |
| 1070 | if name == "" { |
| 1071 | name = strings.TrimSpace(modelID) |
| 1072 | } |
| 1073 | return modelEntry{ |
| 1074 | ID: strings.TrimSpace(modelID), |
| 1075 | Name: name, |
| 1076 | Reasoning: model.Reasoning, |
| 1077 | Input: sanitizeAgentAccountModelInputs(model.Input), |
| 1078 | ContextWindow: model.ContextWindow, |
| 1079 | MaxTokens: model.MaxTokens, |
| 1080 | Cost: modelCost{}, |
| 1081 | } |
| 1082 | } |
| 1083 | |
| 1084 | type openclawAccountModelRuntime struct { |
| 1085 | StoredModel string |
no test coverage detected