Chore: linter complaints

This commit is contained in:
Grail Finder
2026-02-18 08:42:05 +03:00
parent 7d18a9d77e
commit c12311da99
6 changed files with 18 additions and 17 deletions

View File

@@ -206,13 +206,14 @@ func (m *RoleMsg) ToText(i int) string {
imageIndicators = append(imageIndicators, fmt.Sprintf("[orange::i][image: %s][-:-:-]", displayPath))
case map[string]any:
if partType, exists := p["type"]; exists {
if partType == "text" {
switch partType {
case "text":
if textVal, textExists := p["text"]; textExists {
if textStr, isStr := textVal.(string); isStr {
textParts = append(textParts, textStr)
}
}
} else if partType == "image_url" {
case "image_url":
// Handle unmarshaled image content
var displayPath string
if pathVal, pathExists := p["path"]; pathExists {