feat: add model name display in AI actions and optimize HTML report

- Add ModelName field to PlanningResult and SubActionResult
- Update HTML report with improved layout and model name display
- Fix elapsed time setting bug and enhance mobile responsiveness
This commit is contained in:
lilong.129
2025-06-08 22:08:51 +08:00
parent 660e8ca124
commit 14cef72f5a
7 changed files with 609 additions and 118 deletions
+2
View File
@@ -21,6 +21,7 @@ const (
// UITARSContentParser parses the Thought/Action format response
type UITARSContentParser struct {
modelType option.LLMServiceType
systemPrompt string
actionMapping map[string]option.ActionName
}
@@ -55,6 +56,7 @@ func (p *UITARSContentParser) Parse(content string, size types.Size) (*PlanningR
ToolCalls: toolCalls,
Thought: thought,
Content: content,
ModelName: string(p.modelType),
}, nil
}