refactor: update ConvertToOpenAIVideo method to return byte array and improve error handling

This commit is contained in:
CaIon
2025-10-14 23:03:17 +08:00
parent 64ed7dce4d
commit aa35d8db69
9 changed files with 35 additions and 23 deletions

View File

@@ -27,7 +27,7 @@ type OpenAIVideo struct {
Size string `json:"size,omitempty"`
RemixedFromVideoID string `json:"remixed_from_video_id,omitempty"`
Error *OpenAIVideoError `json:"error,omitempty"`
Metadata map[string]any `json:"metadata,omitempty"`
Metadata map[string]any `json:"meta_data,omitempty"`
}
func (m *OpenAIVideo) SetProgressStr(progress string) {