Skip to content

Commit 48c32c3

Browse files
authored
docs(hub-api): add expand param to get models
1 parent 9a3b522 commit 48c32c3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docs/hub/api.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ Get information from all models in the Hub. The response is paginated, use the [
3434
- `limit`: Limit the number of models fetched.
3535
- `full`: Whether to fetch most model data, such as all tags, the files, etc.
3636
- `config`: Whether to also fetch the repo config.
37+
- `expand`: List properties to return in the response. This parameter cannot be used if `full`, `cardData` or `config` are passed. When used, only the properties in the list will be returned. Possible values are: `author`, `cardData`, `config`, `createdAt`, `disabled`, `downloads`, `downloadsAllTime`, `gated`, `inference`, `inferenceProviderMapping`, `lastModified`, `library_name`, `likes`, `mask_token`, `model-index`, `pipeline_tag`, `private`, `safetensors`, `sha`, `siblings`, `spaces`, `tags`, `transformersInfo`, `trendingScore`, `widgetData`, `gguf`, `resourceGroup` and `xetEnabled`.
3738

3839
Payload:
3940

@@ -46,7 +47,8 @@ params = {
4647
"direction":"direction",
4748
"limit":"limit",
4849
"full":"full",
49-
"config":"config"
50+
"config":"config",
51+
"expand":[]
5052
}
5153
```
5254

0 commit comments

Comments
 (0)