-
Couldn't load subscription status.
- Fork 339
Add protocol method support for Video APIs #772
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…hreja_VideosAPI
| 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); |
There was a problem hiding this comment.
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. 🙂
There was a problem hiding this comment.
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}"); | ||
| } | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
This PR adds protocol methods for the Video APIs.
Docs ref: https://platform.openai.com/docs/api-reference/videos