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

Function buildOpenclawModelEntry

agent/app/service/agents_utils.go:1068–1082  ·  view source on GitHub ↗
(modelID string, model dto.AgentAccountModel)

Source from the content-addressed store, hash-verified

1066}
1067
1068func 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
1084type openclawAccountModelRuntime struct {
1085 StoredModel string

Callers 1

Calls 1

Tested by

no test coverage detected