Explorar el Código

feat: doubao add first and last image to video

feitianbubu hace 1 mes
padre
commit
df465ca8fd
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      relay/channel/task/doubao/adaptor.go

+ 1 - 0
relay/channel/task/doubao/adaptor.go

@@ -30,6 +30,7 @@ type ContentItem struct {
 	Text     string          `json:"text,omitempty"`      // for text type
 	ImageURL *ImageURL       `json:"image_url,omitempty"` // for image_url type
 	Video    *VideoReference `json:"video,omitempty"`     // for video (sample) type
+	Role     string          `json:"role,omitempty"`      // reference_image / first_frame / last_frame
 }
 
 type ImageURL struct {