-
-
Notifications
You must be signed in to change notification settings - Fork 1
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
feat:Update Replicate API OpenAPI Spec with Refined Endpoint Descriptions #72
Conversation
WalkthroughThis pull request updates the OpenAPI specification by refining the endpoint descriptions in the Replicate API. The changes enhance clarity by detailing the response formats for the Changes
Possibly related PRs
Suggested reviewers
Poem
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
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.
Actionable comments posted: 0
🧹 Nitpick comments (1)
src/libs/Replicate/openapi.yaml (1)
593-600
: Refined Description for Official Model Predictions
The description for thePOST /models/{model_owner}/{model_name}/predictions
endpoint now clearly differentiates the process for official models by providing a direct link to the related changelog and instructing users to use an alternative operation for non-official models.
Note: There is a minor typo in the description—“endpiont” should be corrected to “endpoint.”
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
⛔ Files ignored due to path filters (8)
src/libs/Replicate/Generated/Replicate.IReplicateApi.ModelsGet.g.cs
is excluded by!**/generated/**
src/libs/Replicate/Generated/Replicate.IReplicateApi.ModelsList.g.cs
is excluded by!**/generated/**
src/libs/Replicate/Generated/Replicate.IReplicateApi.ModelsPredictionsCreate.g.cs
is excluded by!**/generated/**
src/libs/Replicate/Generated/Replicate.IReplicateApi.PredictionsCreate.g.cs
is excluded by!**/generated/**
src/libs/Replicate/Generated/Replicate.ReplicateApi.ModelsGet.g.cs
is excluded by!**/generated/**
src/libs/Replicate/Generated/Replicate.ReplicateApi.ModelsList.g.cs
is excluded by!**/generated/**
src/libs/Replicate/Generated/Replicate.ReplicateApi.ModelsPredictionsCreate.g.cs
is excluded by!**/generated/**
src/libs/Replicate/Generated/Replicate.ReplicateApi.PredictionsCreate.g.cs
is excluded by!**/generated/**
📒 Files selected for processing (1)
src/libs/Replicate/openapi.yaml
(4 hunks)
🔇 Additional comments (3)
src/libs/Replicate/openapi.yaml (3)
495-502
: Enhanced GET /models Endpoint Description
The updated description now clearly states that the endpoint returns a paginated list of public models and provides a full cURL example along with a reference to themodels.get
documentation for more details. This improvement enhances clarity and overall user guidance.
571-579
: Improved GET Model Details for a Single Model
The detailed description for theGET /models/{model_owner}/{model_name}
endpoint now includes a comprehensive cURL example and a detailed schema overview, highlighting both the example response and the inclusion of the input and output schema for the latest model version. Ensure that all example fields and referenced links (e.g., to [jq]) accurately reflect the current API response.
757-765
: Clarified Non-Official Model Prediction Creation
The updated description for thePOST /predictions
endpoint effectively explains that if you're running an official model, you should use the alternative endpoint (models.predictions.create
). The detailed example provided further clarifies the expected payload and behavior. This change should help reduce confusion among API users regarding which endpoint to use.
Summary by CodeRabbit