feat: 临时兼容aws使用链接媒体

This commit is contained in:
CaIon
2025-10-15 18:21:19 +08:00
parent b2a057723a
commit dce00141ce
2 changed files with 36 additions and 0 deletions

View File

@@ -148,6 +148,10 @@ func (c *ClaudeMessage) SetStringContent(content string) {
c.Content = content
}
func (c *ClaudeMessage) SetContent(content any) {
c.Content = content
}
func (c *ClaudeMessage) ParseContent() ([]ClaudeMediaMessage, error) {
return common.Any2Type[[]ClaudeMediaMessage](c.Content)
}