Skip to content

Conversation

@orangetin
Copy link
Member

  • Add VIDEO_URL type to chat completion message content types
  • Implement ChatCompletionMessageContentVideoURL model for video URL data
  • Add video_url field to ChatCompletionMessageContent class
  • Add unit test to verify video URL message handling
  • Update README with multi-modal content documentation including:
    • Text-only messages
    • Image URL messages
    • Video URL messages
    • Clear explanation of content type usage

Example usage:

client.chat.completions.create(
    messages=[{
        "role": "user",
        "content": [
            {"type": "text", "text": "What's in this video?"},
            {"type": "video_url", "video_url": {"url": "https://example.com/video.mp4"}},
        ],
    }],
    model="your_model"
)

@orangetin orangetin requested a review from ConnorLi96 February 19, 2025 20:14
Copy link

@ConnorLi96 ConnorLi96 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@orangetin orangetin merged commit 262eed8 into main Mar 6, 2025
5 of 6 checks passed
@orangetin orangetin deleted the orangetin/add-video-url branch April 30, 2025 16:09
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.

4 participants