refactor: message content 改成 any

refactor: message content 改成 any
This commit is contained in:
Xyfacai committed 2025-06-07 23:47:22 +08:00
1 parent e2df80118f
commit 8343fe0740
16 files changed
+319 -122

No files matched your search

+1 -1
View File
@@ -10,7 +10,7 @@ type CozeError struct {
type CozeEnterMessage struct {
Role string `json:"role"`
Type string `json:"type,omitempty"`
Content json.RawMessage `json:"content,omitempty"`
Content any `json:"content,omitempty"`
MetaData json.RawMessage `json:"meta_data,omitempty"`
ContentType string `json:"content_type,omitempty"`
}