



























You can now update model properties using the API with a PATCH request to /v1/models/{owner}/{name}.
You can update the following properties:
description - Model descriptionreadme - Model README contentgithub_url - GitHub repository URLpaper_url - Research paper URLweights_url - Model weights URLlicense_url - License URLExample cURL request:
curl -X PATCH \
https://api.replicate.com/v1/models/your-username/your-model-name \
-H "Authorization: Bearer $REPLICATE_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"description": "Detect hot dogs in images",
"readme": "# Hot Dog Detector\n\n🌭 Ketchup, mustard, and onions...",
"github_url": "https://github.com/alice/hot-dog-detector",
"paper_url": "https://arxiv.org/abs/2504.17639",
"weights_url": "https://huggingface.co/alice/hot-dog-detector",
"license_url": "https://choosealicense.com/licenses/mit/"
}' See the API reference for full details.
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。