Skip to content

Conversation

@ShivangiReja
Copy link
Collaborator

This PR adds protocol methods for the Video APIs.

Docs ref: https://platform.openai.com/docs/api-reference/videos

public virtual ClientResult GetVideo(string videoId, RequestOptions options = null);
public virtual Task<ClientResult> GetVideoAsync(string videoId, RequestOptions options = null);
public virtual ClientResult GetVideos(long? limit = null, string order = null, string after = null, RequestOptions options = null);
public virtual Task<ClientResult> GetVideosAsync(long? limit = null, string order = null, string after = null, RequestOptions options = null);
Copy link
Collaborator

Choose a reason for hiding this comment

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

"GetVideos" and "GetVideosAsync" should implement the pagination pattern. As an example, you can take a look at the ContainerClient:
🔗 https://github.com/openai/openai-dotnet/blob/main/api/OpenAI.net8.0.cs#L2429

This is Chris's PR:
🔗 #624

We don't need to block the release on this, so we can add it in a separate PR. 🙂

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I have created an issue for this: #776


Console.WriteLine($"CreateVideo => id: {id}, status: {status}");
}
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

Nice!

@ShivangiReja ShivangiReja merged commit 0a6582e into openai:main Oct 25, 2025
2 checks passed
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.

2 participants