feat: Thumbnail-Varianten (256px) für Agent-Avatare und Session-Images
- ImageService: ResizeDataUrlSmall() für 256px WebP-Thumbnails (Quality 70) - Neue DB-Spalten: agents.avatar_small, sessions.image_small - Migration generiert Thumbnails für bestehende Bilder automatisch - Listen-Endpoints (/api/agents, /api/sessions) liefern kleine Variante - Detail-Endpoints liefern weiterhin das volle 512px-Bild - Frontend unverändert (Cards nutzen automatisch die kleineren Bilder)
This commit is contained in:
1 parent
8efce5f2d5
commit
2a2e98ca68
6 files changed
+116
-15
No files matched your search
@@ -5,7 +5,8 @@ public class AgentRecord
|
||||
public long Id { get; set; }
|
||||
public string AgentId { get; set; }
|
||||
public string Name { get; set; }
|
||||
public string Avatar { get; set; } // base64 data url
|
||||
public string Avatar { get; set; } // base64 data url (512px)
|
||||
public string AvatarSmall { get; set; } // base64 data url (256px, für Listen)
|
||||
public string Description { get; set; }
|
||||
public string Model { get; set; } // sonnet, sonnet-4-5, sonnet-4-6, opus, opus-4-5, opus-4-6, haiku, haiku-4-5
|
||||
public string ToolChoice { get; set; } // "any" oder "auto"
|
||||
|
||||
@@ -7,6 +7,7 @@ public class SessionRecord
|
||||
public string Name { get; set; }
|
||||
public string Description { get; set; }
|
||||
public string Image { get; set; }
|
||||
public string ImageSmall { get; set; } // 256px Thumbnail für Listen
|
||||
public string AgentId { get; set; }
|
||||
public string Workspace { get; set; }
|
||||
public string Context { get; set; }
|
||||
|
||||
Reference in new issue
Block a user