Skip to content

Conversation

ding-ding666
Copy link

Summary

This PR adds support for a custom video message part type to enable compatibility with Alibaba Cloud's vision model services that require video content as arrays of base64-encoded frames.

Background

Alibaba Cloud's Model Studio supports video processing through a specific format where video content is sent as an array of base64-encoded image frames. While this client primarily targets OpenAI's API, this enhancement enables it to work with Alibaba Cloud's multimodal services and other similar implementations.

Reference: https://help.aliyun.com/zh/model-studio/vision#80dbf6ca8fh6s

Changes

  • Added ChatMessagePartTypeVideo = "video" constant
  • Added Video []string field to ChatMessagePart struct
  • Maintains full JSON marshaling/unmarshaling compatibility

@ding-ding666
Copy link
Author

The following three links are a set of modifications:

cloudwego/eino#254
#3
cloudwego/eino-ext#280

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants