Skip to content

Commit c26b063

Browse files
[FIX DOCSTRING] Update hf_api.py (#3182)
* [FIX DOCSTRING] Update hf_api.py remove `baseModels`, `childrenModelCount` and `usedStorage` from `expand` possible values because they are only accepted when using the /api/models/repo_id endpoint (i.e. HfApi.model_info()). * [MINOR:FIX] Update hf_api.py Remove tab I added by accident --------- Co-authored-by: célina <hanouticelina@gmail.com>
1 parent 5cc812f commit c26b063

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/huggingface_hub/hf_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1931,7 +1931,7 @@ def list_models(
19311931
expand (`List[ExpandModelProperty_T]`, *optional*):
19321932
List properties to return in the response. When used, only the properties in the list will be returned.
19331933
This parameter cannot be used if `full`, `cardData` or `fetch_config` are passed.
1934-
Possible values are `"author"`, `"baseModels"`, `"cardData"`, `"childrenModelCount"`, `"config"`, `"createdAt"`, `"disabled"`, `"downloads"`, `"downloadsAllTime"`, `"gated"`, `"gguf"`, `"inference"`, `"inferenceProviderMapping"`, `"lastModified"`, `"library_name"`, `"likes"`, `"mask_token"`, `"model-index"`, `"pipeline_tag"`, `"private"`, `"safetensors"`, `"sha"`, `"siblings"`, `"spaces"`, `"tags"`, `"transformersInfo"`, `"trendingScore"`, `"widgetData"`, `"usedStorage"`, `"resourceGroup"` and `"xetEnabled"`.
1934+
Possible values are `"author"`, `"cardData"`, `"config"`, `"createdAt"`, `"disabled"`, `"downloads"`, `"downloadsAllTime"`, `"gated"`, `"gguf"`, `"inference"`, `"inferenceProviderMapping"`, `"lastModified"`, `"library_name"`, `"likes"`, `"mask_token"`, `"model-index"`, `"pipeline_tag"`, `"private"`, `"safetensors"`, `"sha"`, `"siblings"`, `"spaces"`, `"tags"`, `"transformersInfo"`, `"trendingScore"`, `"widgetData"`, `"resourceGroup"` and `"xetEnabled"`.
19351935
full (`bool`, *optional*):
19361936
Whether to fetch all model data, including the `last_modified`,
19371937
the `sha`, the files and the `tags`. This is set to `True` by

0 commit comments

Comments
 (0)