feat:Add required web URL field to urls in prediction and training responses#108
feat:Add required web URL field to urls in prediction and training responses#108
Conversation
WalkthroughThe OpenAPI specification for the Replicate HTTP API was updated to add a required Changes
Poem
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. 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.
Actionable comments posted: 0
🧹 Nitpick comments (4)
src/libs/Replicate/openapi.yaml (4)
801-801: Consider updating the predictions list description
Thepredictions.listresponse now includes aurls.webfield for browser access. It may be helpful to mention this new property in the description so users know they can view predictions in a browser.
865-865: MentionwebURL in single prediction docs
Thepredictions.getresponse includes theurls.weblink. The description currently focuses on API endpoints—please add a note about the new browser-view URL.
903-903: IncludewebURL in trainings list docs
Sincetrainings.listnow returns aurls.webentry, consider updating the description to highlight the browser-accessible link.
928-928: HighlightwebURL in training detail docs
Thetrainings.getoperation returnsurls.web. A brief mention in the description will make users aware of the browser view link.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
⛔ Files ignored due to path filters (12)
src/libs/Replicate/Generated/Replicate.IReplicateApi.PredictionsGet.g.csis excluded by!**/generated/**src/libs/Replicate/Generated/Replicate.IReplicateApi.PredictionsList.g.csis excluded by!**/generated/**src/libs/Replicate/Generated/Replicate.IReplicateApi.TrainingsCreate.g.csis excluded by!**/generated/**src/libs/Replicate/Generated/Replicate.IReplicateApi.TrainingsGet.g.csis excluded by!**/generated/**src/libs/Replicate/Generated/Replicate.IReplicateApi.TrainingsList.g.csis excluded by!**/generated/**src/libs/Replicate/Generated/Replicate.Models.SchemasPredictionResponse.g.csis excluded by!**/generated/**src/libs/Replicate/Generated/Replicate.Models.SchemasPredictionResponseUrls.g.csis excluded by!**/generated/**src/libs/Replicate/Generated/Replicate.ReplicateApi.PredictionsGet.g.csis excluded by!**/generated/**src/libs/Replicate/Generated/Replicate.ReplicateApi.PredictionsList.g.csis excluded by!**/generated/**src/libs/Replicate/Generated/Replicate.ReplicateApi.TrainingsCreate.g.csis excluded by!**/generated/**src/libs/Replicate/Generated/Replicate.ReplicateApi.TrainingsGet.g.csis excluded by!**/generated/**src/libs/Replicate/Generated/Replicate.ReplicateApi.TrainingsList.g.csis excluded by!**/generated/**
📒 Files selected for processing (1)
src/libs/Replicate/openapi.yaml(6 hunks)
🔇 Additional comments (3)
src/libs/Replicate/openapi.yaml (3)
764-765: Training endpoint documentation added
The newsummaryanddescriptionfor thetrainings.createoperation clearly explain how to start a model training and include a concrete example.
1240-1261: Prediction response schema enhancements
Theschemas_prediction_responsecorrectly addswebto the required list and clarifies descriptions forget,cancel,stream, andwebURLs. This aligns with the PR objectives and improves schema clarity.
1358-1369: Inconsistent with PR summary: training response schema
The PR summary states thatschemas_training_responseshould also include a requiredwebURL, but theurlsobject here only listscancelandget. Please verify and update the training response schema to includeurls.webif intended.Likely an incorrect or invalid review comment.
Summary by CodeRabbit