Previously on update_inference_endpoint, all fields in the payload were populated by default with None values. This lead to a weird side effect which overwrites some existing values with empty ones. In particular, updating any settings of an inference endpoint deletes its environment variables. This PR fixes this by sending only not-none values.
The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.
Fix https://github.com/huggingface/huggingface_hub/issues/2472 @MoritzLaurer
Previously on
update_inference_endpoint
, all fields in the payload were populated by default withNone
values. This lead to a weird side effect which overwrites some existing values with empty ones. In particular, updating any settings of an inference endpoint deletes its environment variables. This PR fixes this by sending only not-none values.